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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Nov 19 08:49:17 CET 2012


Revision: 19712
          http://gar.svn.sourceforge.net/gar/?rev=19712&view=rev
Author:   wahwah
Date:     2012-11-19 07:49:16 +0000 (Mon, 19 Nov 2012)
Log Message:
-----------
pkgdb: Fix a bug in system files import

The code was deleting file entries, but wasn't deleting the package entries.

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

Modified: csw/mgar/gar/v2/lib/python/system_pkgmap.py
===================================================================
--- csw/mgar/gar/v2/lib/python/system_pkgmap.py	2012-11-19 07:48:43 UTC (rev 19711)
+++ csw/mgar/gar/v2/lib/python/system_pkgmap.py	2012-11-19 07:49:16 UTC (rev 19712)
@@ -437,6 +437,8 @@
     for sqo_srv4 in res:
       for srv4_in_cat in sqo_srv4.in_catalogs:
         srv4_in_cat.destroySelf()
+      sqo_srv4.RemoveAllCswFiles()
+      sqo_srv4.destroySelf()
 
   def ImportFromFile(self, in_fd, show_progress=False):
     logging.debug("Unpickling data")

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