SF.net SVN: gar:[23913] csw/mgar/gar/v2/lib/python

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Aug 3 13:04:48 CEST 2014


Revision: 23913
          http://sourceforge.net/p/gar/code/23913
Author:   wahwah
Date:     2014-08-03 11:04:47 +0000 (Sun, 03 Aug 2014)
Log Message:
-----------
checkpkg: A dependency might not exist.

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

Modified: csw/mgar/gar/v2/lib/python/checkpkg_lib.py
===================================================================
--- csw/mgar/gar/v2/lib/python/checkpkg_lib.py	2014-08-03 10:24:24 UTC (rev 23912)
+++ csw/mgar/gar/v2/lib/python/checkpkg_lib.py	2014-08-03 11:04:47 UTC (rev 23913)
@@ -981,8 +981,7 @@
         ]
 
     res = m.Pkginst.select(oac, join=join)
-    pkgs = [x.pkgname for x in res]
-    return pkgs
+    return [x.pkgname for x in res]
 
   def GetPathsAndPkgnamesByBasename(self, basename, osrel, arch, catrel):
     """Retrieves pkginst names of packages that have certain files.

Modified: csw/mgar/gar/v2/lib/python/package_checks.py
===================================================================
--- csw/mgar/gar/v2/lib/python/package_checks.py	2014-08-03 10:24:24 UTC (rev 23912)
+++ csw/mgar/gar/v2/lib/python/package_checks.py	2014-08-03 11:04:47 UTC (rev 23913)
@@ -1350,6 +1350,8 @@
     # This package better not be a stub.
     # But how do we know it's a stub? We test for the presence of...
     dep_data = error_mgr.GetPkgByPkgname(dep_pkgname)
+    if dep_data is None:
+      continue
     if dep_data['catalogname'].endswith('_stub'):
       error_mgr.ReportError(
           'dependency-on-stub',

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