[csw-devel] SF.net SVN: gar:[19949] csw/mgar/gar/v2/lib/web/releases_web.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Dec 23 13:16:15 CET 2012


Revision: 19949
          http://gar.svn.sourceforge.net/gar/?rev=19949&view=rev
Author:   wahwah
Date:     2012-12-23 12:16:13 +0000 (Sun, 23 Dec 2012)
Log Message:
-----------
pkgdb-web: Disallow old osrel only in unstable

This safety check is there to make it harder for people to remove packages
from the old, unsupported OS releases. It's better to allow updating old
OS releases in other catalogs, so that catalog integration works.

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/web/releases_web.py

Modified: csw/mgar/gar/v2/lib/web/releases_web.py
===================================================================
--- csw/mgar/gar/v2/lib/web/releases_web.py	2012-12-23 10:48:24 UTC (rev 19948)
+++ csw/mgar/gar/v2/lib/web/releases_web.py	2012-12-23 12:16:13 UTC (rev 19949)
@@ -218,7 +218,7 @@
         self.ReturnError(
             "%s is not one of %s (OS releases)"
             % (osrel_name, common_constants.OS_RELS))
-      if osrel_name in common_constants.OBSOLETE_OS_RELS:
+      if osrel_name in common_constants.OBSOLETE_OS_RELS and catrel_name == 'unstable':
         self.ReturnError(
             "package deletions from an obsolete OS release such as %s "
             "are not allowed" % osrel_name)

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