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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Jan 17 15:38:13 CET 2011


Revision: 12982
          http://gar.svn.sourceforge.net/gar/?rev=12982&view=rev
Author:   wahwah
Date:     2011-01-17 14:38:13 +0000 (Mon, 17 Jan 2011)

Log Message:
-----------
pkgdb: A bugfix for catalog tree imports

When importing a tree and autoregistering packages, use the actual ImportPkg
function, don't just flip the 'registered' bit.

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

Modified: csw/mgar/gar/v2/lib/python/pkgdb.py
===================================================================
--- csw/mgar/gar/v2/lib/python/pkgdb.py	2011-01-17 14:37:32 UTC (rev 12981)
+++ csw/mgar/gar/v2/lib/python/pkgdb.py	2011-01-17 14:38:13 UTC (rev 12982)
@@ -290,7 +290,8 @@
           logging.warning(
               "Package %s was not registered for releases. Registering it.",
               sqo_srv4.basename)
-          sqo_srv4.registered = True
+          stats = sqo_srv4.GetStatsStruct()
+          package_stats.PackageStats.ImportPkg(stats, True)
         db_catalog.AddSrv4ToCatalog(
             sqo_srv4, osrel, arch, catrel)
 


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