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

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Sun Mar 27 21:19:15 CEST 2011


Revision: 13950
          http://gar.svn.sourceforge.net/gar/?rev=13950&view=rev
Author:   bdwalton
Date:     2011-03-27 19:19:15 +0000 (Sun, 27 Mar 2011)

Log Message:
-----------
checkpkg/package.py: for packages with no obsolete file, return a valid dict instead of an empty list

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

Modified: csw/mgar/gar/v2/lib/python/package.py
===================================================================
--- csw/mgar/gar/v2/lib/python/package.py	2011-03-27 17:00:21 UTC (rev 13949)
+++ csw/mgar/gar/v2/lib/python/package.py	2011-03-27 19:19:15 UTC (rev 13950)
@@ -381,7 +381,7 @@
     obsoleted_by_path = os.path.join(self.directory, "install", "obsolete")
 
     if not os.path.exists(obsoleted_by_path):
-      return obsoleted_by
+      return { "syntax_ok": True, "obsoleted_by": obsoleted_by }
 
     with open(obsoleted_by_path, "r") as fd:
       for line in fd:


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