SF.net SVN: gar:[22284] csw/mgar/gar/v2/lib/python/find_obsolete_pkgs.py

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Tue Oct 22 17:40:23 CEST 2013


Revision: 22284
          http://gar.svn.sourceforge.net/gar/?rev=22284&view=rev
Author:   dmichelsen
Date:     2013-10-22 15:40:22 +0000 (Tue, 22 Oct 2013)
Log Message:
-----------
find_obsolete_pkgs.py: Print list sorted

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

Modified: csw/mgar/gar/v2/lib/python/find_obsolete_pkgs.py
===================================================================
--- csw/mgar/gar/v2/lib/python/find_obsolete_pkgs.py	2013-10-22 13:14:09 UTC (rev 22283)
+++ csw/mgar/gar/v2/lib/python/find_obsolete_pkgs.py	2013-10-22 15:40:22 UTC (rev 22284)
@@ -167,16 +167,18 @@
 
     print ('write %s' % (fn_removelst % (newcatrel,osrel,arch)))
     rmcnt = 0
+    remove_catnames = sorted(CatSubSet(*newcatlst[rp]).catalogname for rp in reallyremovelst)
     with open(fn_removelst % (newcatrel,osrel,arch), "w") as fd:
-        for rp in reallyremovelst:
-            fd.write(CatSubSet(*newcatlst[rp]).catalogname+'\n')
+        for c in remove_catnames:
+            fd.write(c+'\n')
             rmcnt = rmcnt + 1
     logger.info("packages to remove: %d" % rmcnt)
     print ('write %s' % (fn_rebuildlst % (newcatrel,osrel,arch)))
     rbcnt = 0
+    rebuild_catnames = sorted(CatSubSet(*newcatlst[rp]).catalogname for rp in rebuildlst)
     with open(fn_rebuildlst % (newcatrel,osrel,arch), "w") as fd:
-        for rp in rebuildlst:
-            fd.write(CatSubSet(*newcatlst[rp]).catalogname+'\n')
+        for c in rebuild_catnames:
+            fd.write(c+'\n')
             rbcnt = rbcnt + 1
     logger.info("packages to rebuild: %d" % rbcnt)
 

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