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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Sep 7 18:58:47 CEST 2013


Revision: 21889
          http://gar.svn.sourceforge.net/gar/?rev=21889&view=rev
Author:   wahwah
Date:     2013-09-07 16:58:46 +0000 (Sat, 07 Sep 2013)
Log Message:
-----------
csw-upload-pkg: Explicitly get full package data

The first lookup returns a shortened version, without the name of the OS
release.

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	2013-09-07 16:43:46 UTC (rev 21888)
+++ csw/mgar/gar/v2/lib/python/csw_upload_pkg.py	2013-09-07 16:58:46 UTC (rev 21889)
@@ -236,6 +236,10 @@
         try:
           srv4_in_catalog = self._rest_client.Srv4ByCatalogAndCatalogname(
               catrel, arch, osrel, catalogname)
+          # To get the full information; the Srv4ByCatalogAndCatalogname
+          # return a smaller set of data.
+          srv4_in_catalog = self._rest_client.GetPkgByMd5(
+              srv4_in_catalog['md5_sum'])
         except urllib2.HTTPError, e:
           srv4_in_catalog = None
         if srv4_in_catalog:

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