[csw-maintainers] Issue with csw-upload-pkg
Maciej (Matchek) Bliziński
maciej at opencsw.org
Wed Jan 2 02:50:04 CET 2013
Try this patch:
index 24ace0a..194597d 100755
--- a/gar/v2/lib/python/csw_upload_pkg.py
+++ b/gar/v2/lib/python/csw_upload_pkg.py
@@ -240,8 +240,11 @@ class Srv4Uploader(object):
for osrel in osrels:
logging.debug("%s %s %s", catrel, arch, osrel)
cat_key = (catrel, arch, osrel)
- srv4_in_catalog = self._rest_client.Srv4ByCatalogAndCatalogname(
- catrel, arch, osrel, catalogname)
+ try:
+ srv4_in_catalog = self._rest_client.Srv4ByCatalogAndCatalogname(
+ catrel, arch, osrel, catalogname)
+ except urllib2.HTTPError, e:
+ srv4_in_catalog = None
if srv4_in_catalog:
logging.debug("Catalog %s %s contains version %s of the %s package",
arch, osrel, srv4_in_catalog["osrel"], catalogname)
More information about the maintainers
mailing list