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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Apr 11 11:15:28 CEST 2011


Revision: 14125
          http://gar.svn.sourceforge.net/gar/?rev=14125&view=rev
Author:   wahwah
Date:     2011-04-11 09:15:28 +0000 (Mon, 11 Apr 2011)

Log Message:
-----------
csw-upload-pkg: Make catalog release a parameter

Reduce the number of hardcoded 'unstable'.

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

Modified: csw/mgar/gar/v2/lib/python/csw_upload_pkg.py
===================================================================
--- csw/mgar/gar/v2/lib/python/csw_upload_pkg.py	2011-04-11 09:14:55 UTC (rev 14124)
+++ csw/mgar/gar/v2/lib/python/csw_upload_pkg.py	2011-04-11 09:15:28 UTC (rev 14125)
@@ -181,8 +181,13 @@
     parsed_basename = opencsw.ParsePackageFileName(basename)
     # TODO: Move this bit to a separate class (RestClient)
     url = (
-        "%s%s/catalogs/unstable/%s/%s/%s/"
-        % (self.rest_url, RELEASES_APP, arch, osrel, md5_sum))
+        "%s%s/catalogs/%s/%s/%s/%s/"
+        % (self.rest_url,
+           RELEASES_APP,
+           DEFAULT_CATREL,
+           arch,
+           osrel,
+           md5_sum))
     logging.debug("DELETE @ URL: %s %s", type(url), url)
     c = pycurl.Curl()
     d = StringIO()
@@ -307,8 +312,13 @@
     parsed_basename = opencsw.ParsePackageFileName(basename)
     logging.debug("parsed_basename: %s", parsed_basename)
     url = (
-        "%s%s/catalogs/unstable/%s/%s/%s/"
-        % (self.rest_url, RELEASES_APP, arch, osrel, md5_sum))
+        "%s%s/catalogs/%s/%s/%s/%s/"
+        % (self.rest_url,
+           RELEASES_APP,
+           DEFAULT_CATREL,
+           arch,
+           osrel,
+           md5_sum))
     logging.debug("URL: %s %s", type(url), url)
     c = pycurl.Curl()
     d = StringIO()


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