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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Thu Dec 30 03:48:28 CET 2010


Revision: 12128
          http://gar.svn.sourceforge.net/gar/?rev=12128&view=rev
Author:   wahwah
Date:     2010-12-30 02:48:27 +0000 (Thu, 30 Dec 2010)

Log Message:
-----------
checkpkg: Log which package satisfies which dep

For each reason, display the package that satisfied each dependency.

For example, if CSWfoo is needed by CSWbar because of X, log that CSWfoo was
chosen to satisfy X.

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	2010-12-30 02:47:56 UTC (rev 12127)
+++ csw/mgar/gar/v2/lib/python/checkpkg_lib.py	2010-12-30 02:48:27 UTC (rev 12128)
@@ -642,14 +642,15 @@
     missing_dep_groups = []
     for reason_group in reason_groups:
       dependency_fulfilled = False
-      pkgnames = [x for x, y in reason_group]
-      for pkgname in pkgnames:
+      for pkgname, reason in reason_group:
         # If one of the packages suggested is the package under examination,
         # consider the dependency satisifed.
-        if pkgname in declared_deps_set or pkgname == for_pkgname:
+        if pkgname == for_pkgname or pkgname in declared_deps_set:
+          logging.debug("%s is satisfied by %s", repr(reason), pkgname)
           dependency_fulfilled = True
           break
       if not dependency_fulfilled:
+        pkgnames = [x for x, y in reason_group]
         missing_dep_groups.append(pkgnames)
     return missing_dep_groups
 


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