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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Tue Jun 29 07:34:44 CEST 2010


Revision: 10385
          http://gar.svn.sourceforge.net/gar/?rev=10385&view=rev
Author:   wahwah
Date:     2010-06-29 05:34:44 +0000 (Tue, 29 Jun 2010)

Log Message:
-----------
mGAR v2: checkpkg, a correction for an on-screen report: it's not always missing packages, it can be various dependency issues.

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

Modified: csw/mgar/gar/v2/lib/python/checkpkg.py
===================================================================
--- csw/mgar/gar/v2/lib/python/checkpkg.py	2010-06-29 05:33:38 UTC (rev 10384)
+++ csw/mgar/gar/v2/lib/python/checkpkg.py	2010-06-29 05:34:44 UTC (rev 10385)
@@ -77,7 +77,7 @@
 )
 
 REPORT_TMPL = u"""#if $missing_deps or $surplus_deps or $orphan_sonames
-Missing dependencies of $pkgname:
+Dependency issues of $pkgname:
 #end if
 #if $missing_deps
 #for $pkg, $reasons in $sorted($missing_deps)
@@ -540,10 +540,6 @@
   def GetInstalledPackages(self):
     """Returns a dictionary of all installed packages."""
     self._LazyInitializeDatabase()
-    # c = self.conn.cursor()
-    # sql = "SELECT pkgname, pkg_desc FROM packages;"
-    # c.execute(sql)
-    # return dict(x[0:2] for x in c)
     res = m.CswPackage.select()
     return dict([[str(x.pkgname), str(x.pkg_desc)] for x in res])
 


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