[csw-maintainers] Issue with csw-upload-pkg

Dagobert Michelsen dam at opencsw.org
Wed Jan 2 10:04:02 CET 2013


Hi Maciej,

Am 02.01.2013 um 02:50 schrieb Maciej (Matchek) Bliziński <maciej at opencsw.org>:
> 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)

Looks like there is still something missing:

dam at login [login]:/home/dam/staging/build-01.Jan.2013 > csw-upload-pkg *icu*
Processing 18 file(s). Please wait.
Traceback (most recent call last):
  File "/home/dam/bin/csw-upload-pkg", line 516, in <module>
    uploader.Upload()
  File "/home/dam/bin/csw-upload-pkg", line 175, in Upload
    filename, self.catrel, arch, osrel, md5_sum)
  File "/home/dam/bin/csw-upload-pkg", line 246, in _MatchSrv4ToCatalogs
    except urllib2.HTTPError, e:
NameError: global name 'urllib2' is not defined
zsh: 12499 exit 1     csw-upload-pkg *icu*


Best regards

  -- Dago

-- 
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896



More information about the maintainers mailing list