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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Jan 23 09:01:34 CET 2011


Revision: 13061
          http://gar.svn.sourceforge.net/gar/?rev=13061&view=rev
Author:   wahwah
Date:     2011-01-23 08:01:33 +0000 (Sun, 23 Jan 2011)

Log Message:
-----------
pkgdb: Refuse to create 'all' catalogs.

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

Modified: csw/mgar/gar/v2/lib/python/checkpkg_lib.py
===================================================================
--- csw/mgar/gar/v2/lib/python/checkpkg_lib.py	2011-01-23 08:01:05 UTC (rev 13060)
+++ csw/mgar/gar/v2/lib/python/checkpkg_lib.py	2011-01-23 08:01:33 UTC (rev 13061)
@@ -952,6 +952,9 @@
     """Registers a srv4 file in a catalog."""
     logging.debug("AddSrv4ToCatalog(%s, %s, %s, %s)",
         sqo_srv4, osrel, arch, catrel)
+    # There are only i386 and sparc catalogs.
+    if arch != 'i386' and arch != 'sparc':
+      raise CatalogDatabaseError("Wrong architecture: %s" % arch)
     sqo_osrel, sqo_arch, sqo_catrel = self.GetSqlobjectTriad(
         osrel, arch, catrel)
     if not self.Srv4MatchesCatalog(sqo_srv4, sqo_arch):


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