SF.net SVN: gar:[23051] csw/mgar/gar/v2/lib/python/compare_catalog.py

cgrzemba at users.sourceforge.net cgrzemba at users.sourceforge.net
Wed Feb 19 13:01:31 CET 2014


Revision: 23051
          http://sourceforge.net/p/gar/code/23051
Author:   cgrzemba
Date:     2014-02-19 12:01:28 +0000 (Wed, 19 Feb 2014)
Log Message:
-----------
revert, commited accidentally

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

Modified: csw/mgar/gar/v2/lib/python/compare_catalog.py
===================================================================
--- csw/mgar/gar/v2/lib/python/compare_catalog.py	2014-02-19 11:35:52 UTC (rev 23050)
+++ csw/mgar/gar/v2/lib/python/compare_catalog.py	2014-02-19 12:01:28 UTC (rev 23051)
@@ -16,21 +16,21 @@
 catalog_keys = ['catalogname','version','pkgname','file_basename',
                     'md5sum','size','deps','category','i_deps']
 
-def xxxSplitPkgList(pkglist):
-    if not pkglist:
+def SplitPkgList(pkglist):
+      if not pkglist:
         pkglist = ()
-    elif pkglist == "none":
+      elif pkglist == "none":
         pkglist = ()
-    else:
-       pkglist = tuple(pkglist.split("|"))
-    return pkglist
+      else:
+        pkglist = tuple(pkglist.split("|"))
+      return pkglist
 
 def convToDict(catlst):
     catdict = []
     for entry in catlst:
         del entry[9]
-	entry[6] = catalog.SplitPkgList(entry[6])
-	entry[8] = catalog.SplitPkgList(entry[8])
+	entry[6] = SplitPkgList(entry[6])
+	entry[8] = SplitPkgList(entry[8])
         catdict.append(dict(zip(catalog_keys,entry)))
     return catdict
 

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