SF.net SVN: gar:[23545] csw/mgar/gar/v2/lib/python/pkgdb.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun May 4 10:28:07 CEST 2014


Revision: 23545
          http://sourceforge.net/p/gar/code/23545
Author:   wahwah
Date:     2014-05-04 08:28:07 +0000 (Sun, 04 May 2014)
Log Message:
-----------
pkgdb show errors <md5> shows overridden status

When displaying errors in a package, we want to know if errors are overridden
or not.

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	2014-05-04 08:28:00 UTC (rev 23544)
+++ csw/mgar/gar/v2/lib/python/pkgdb.py	2014-05-04 08:28:07 UTC (rev 23545)
@@ -441,6 +441,7 @@
       srv4 = GetPkg(md5_sum)
       res = m.CheckpkgErrorTag.select(m.CheckpkgErrorTag.q.srv4_file==srv4)
       for row in res:
+        print 'overridden' if row.overridden else 'active',
         print row.pkgname, row.tag_name, row.tag_info, row.catrel.name, row.arch.name,
         print row.os_rel.short_name
   elif (command, subcommand) == ('show', 'overrides'):

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