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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Fri Apr 9 00:11:57 CEST 2010


Revision: 9569
          http://gar.svn.sourceforge.net/gar/?rev=9569&view=rev
Author:   wahwah
Date:     2010-04-08 22:11:57 +0000 (Thu, 08 Apr 2010)

Log Message:
-----------
mGAR v2: checkpkg, removing all_filenames from package stats.

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

Modified: csw/mgar/gar/v2/lib/python/checkpkg.py
===================================================================
--- csw/mgar/gar/v2/lib/python/checkpkg.py	2010-04-08 21:22:34 UTC (rev 9568)
+++ csw/mgar/gar/v2/lib/python/checkpkg.py	2010-04-08 22:11:57 UTC (rev 9569)
@@ -724,6 +724,7 @@
 
   def GetCommonPaths(self, arch):
     """Returns a list of paths for architecture, from gar/etc/commondirs*."""
+    # TODO: If this was cached, it would save a significant amount of time.
     assert arch in ('i386', 'sparc', 'all'), "Wrong arch: %s" % repr(arch)
     if arch == 'all':
       archs = ('i386', 'sparc')
@@ -947,7 +948,6 @@
   """Collects stats about a package and saves it."""
   # This list needs to be synchronized with the CollectStats() method.
   STAT_FILES = [
-      "all_filenames",
       "bad_paths",
       "binaries",
       "binaries_dump_info",
@@ -1192,7 +1192,6 @@
     self.MakeStatsDir()
     dir_pkg = self.GetDirFormatPkg()
     logging.info("Collecting %s package statistics.", repr(dir_pkg.pkgname))
-    self.DumpObject(dir_pkg.GetAllFilenames(), "all_filenames")
     self.DumpObject(dir_pkg.ListBinaries(), "binaries")
     self.DumpObject(self.GetBinaryDumpInfo(), "binaries_dump_info")
     self.DumpObject(dir_pkg.GetDependencies(), "depends")

Modified: csw/mgar/gar/v2/lib/python/opencsw.py
===================================================================
--- csw/mgar/gar/v2/lib/python/opencsw.py	2010-04-08 21:22:34 UTC (rev 9568)
+++ csw/mgar/gar/v2/lib/python/opencsw.py	2010-04-08 22:11:57 UTC (rev 9569)
@@ -817,10 +817,6 @@
       self.binaries = sorted(self.binaries)
     return self.binaries
 
-  def GetAllFilenames(self):
-    file_paths = self.GetAllFilePaths()
-    return sorted([os.path.basename(f) for f in file_paths])
-
   def GetAllFilePaths(self):
     """Similar to GetAllFilenames, but returns full paths."""
     if not self.file_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