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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Mar 22 09:11:58 CET 2010


Revision: 9318
          http://gar.svn.sourceforge.net/gar/?rev=9318&view=rev
Author:   wahwah
Date:     2010-03-22 08:11:58 +0000 (Mon, 22 Mar 2010)

Log Message:
-----------
mGAR v2: checkpkg, return sorted lists of binaries and all basenames.

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

Modified: csw/mgar/gar/v2/lib/python/opencsw.py
===================================================================
--- csw/mgar/gar/v2/lib/python/opencsw.py	2010-03-22 07:52:51 UTC (rev 9317)
+++ csw/mgar/gar/v2/lib/python/opencsw.py	2010-03-22 08:11:58 UTC (rev 9318)
@@ -810,11 +810,12 @@
       def StripRe(x, strip_re):
         return re.sub(strip_re, "", x)
       self.binaries = [StripRe(x, dotslash_re) for x in stdout.splitlines()]
+      self.binaries = sorted(self.binaries)
     return self.binaries
 
   def GetAllFilenames(self):
     file_paths = self.GetAllFilePaths()
-    return [os.path.basename(f) for f in file_paths]
+    return sorted([os.path.basename(f) for f in file_paths])
 
   def GetAllFilePaths(self):
     """Similar to GetAllFilenames, but returns full paths."""


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