[csw-devel] SF.net SVN: gar:[13147]	csw/mgar/gar/v2/lib/python/pkgdb.py
    wahwah at users.sourceforge.net 
    wahwah at users.sourceforge.net
       
    Mon Jan 31 09:31:47 CET 2011
    
    
  
Revision: 13147
          http://gar.svn.sourceforge.net/gar/?rev=13147&view=rev
Author:   wahwah
Date:     2011-01-31 08:31:47 +0000 (Mon, 31 Jan 2011)
Log Message:
-----------
pkgdb: 'show cat' also displays catalogname
While you can use awk to split the basename, having a separate catalogname
field might be useful.
Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/pkgdb.py
Modified: csw/mgar/gar/v2/lib/python/pkgdb.py
===================================================================
--- csw/mgar/gar/v2/lib/python/pkgdb.py	2011-01-31 03:42:51 UTC (rev 13146)
+++ csw/mgar/gar/v2/lib/python/pkgdb.py	2011-01-31 08:31:47 UTC (rev 13147)
@@ -536,7 +536,7 @@
         options.osrel, options.arch, options.catrel)
     res = GetCatPackagesResult(sqo_osrel, sqo_arch, sqo_catrel)
     for obj in res:
-      print obj.basename, obj.md5_sum
+      print obj.catalogname, obj.basename, obj.md5_sum
   elif command == 'gen-cat':
     catrel = 'unstable'
     if options.catrel != catrel:
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