SF.net SVN: gar:[23090] csw/mgar/gar/v2/lib/python/checkpkg_lib.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Mar 1 13:09:14 CET 2014


Revision: 23090
          http://sourceforge.net/p/gar/code/23090
Author:   wahwah
Date:     2014-03-01 12:09:13 +0000 (Sat, 01 Mar 2014)
Log Message:
-----------
checkpkg: Bugfix for dependency detection

Introduced during the rewrite, a data structure wasn't updated to match the
new code.  The result was that the context in which packages were examined,
was broken.

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/checkpkg_lib.py

Modified: csw/mgar/gar/v2/lib/python/checkpkg_lib.py
===================================================================
--- csw/mgar/gar/v2/lib/python/checkpkg_lib.py	2014-02-28 18:42:25 UTC (rev 23089)
+++ csw/mgar/gar/v2/lib/python/checkpkg_lib.py	2014-03-01 12:09:13 UTC (rev 23090)
@@ -821,8 +821,9 @@
       pkgname = pkg_data["basic_stats"]["pkgname"]
       examined_files_by_pkg.setdefault(pkgname, set())
       for entry in pkg_data["pkgmap"]:
-        if "path" in entry and entry["path"]:
-          base_path, base_name = os.path.split(entry["path"])
+        entry = representations.PkgmapEntry._make(entry)
+        if entry.path:
+          base_path, base_name = os.path.split(entry.path)
           examined_files_by_pkg[pkgname].add((base_path, base_name))
     return examined_files_by_pkg
 

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list