Mailinglist Archive: opensuse-buildservice (314 mails)

< Previous Next >
Re: [opensuse-buildservice] Import new GPG keys in smart
  • From: Werner Flamme <werner.flamme@xxxxxx>
  • Date: Mon, 28 Jan 2008 13:20:18 +0100
  • Message-id: <479DC882.6020200@xxxxxx>
Bernhard Walle [23.01.2008 22:30]:
Hello,

Everybody who uses the smart package manager may have been recognised
that the new GPG build keys are not on keyservers, so the installation
fails.

I wrote a script that fetches all GPG keys of all repositories that
are currently in the smart configuration and imports them into rpm:

http://www.bwalle.de/programme/scripts/smart_fetch_keys_buildservice

I thought it may also be useful for other people ...


Bernhard

Hi Bernhard,

this script does not run on my repositories, one of them may be bad ;-)

[...lots of "Found repo" lines cut off...]
Found repo
http://software.opensuse.org/download/home:/steve-beattie/openSUSE-10.3
Found repo http://software.opensuse.org/download/Banshee/openSUSE_10.3/
Traceback (most recent call last):
File "./smart_fetch_keys_buildservice", line 89, in <module>
main()
File "./smart_fetch_keys_buildservice", line 85, in main
keyurls = get_key_urls(urls)
File "./smart_fetch_keys_buildservice", line 43, in get_key_urls
f = urllib2.urlopen(url)
File "/usr/lib64/python2.5/urllib2.py", line 121, in urlopen
return _opener.open(url, data)
File "/usr/lib64/python2.5/urllib2.py", line 380, in open
response = meth(req, response)
File "/usr/lib64/python2.5/urllib2.py", line 491, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib64/python2.5/urllib2.py", line 412, in error
result = self._call_chain(*args)
File "/usr/lib64/python2.5/urllib2.py", line 353, in _call_chain
result = func(*args)
File "/usr/lib64/python2.5/urllib2.py", line 575, in http_error_302
return self.parent.open(new)
File "/usr/lib64/python2.5/urllib2.py", line 380, in open
response = meth(req, response)
File "/usr/lib64/python2.5/urllib2.py", line 491, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib64/python2.5/urllib2.py", line 418, in error
return self._call_chain(*args)
File "/usr/lib64/python2.5/urllib2.py", line 353, in _call_chain
result = func(*args)
File "/usr/lib64/python2.5/urllib2.py", line 499, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

So s.th. was not found, but I don't know what :-(

Since I did not manage to find a way catching this error (I am no python
programmer), I wrote a shell script following your ideas - with a little
difference in processing, "sequentially" instead of "en gros" ;-). You
can find my version on
<http://www.wernerflamme.name/doku.php?id=users:werner:getrepokeys_en>.

Regards,
Werner

--
Werner Flamme, Abt. WKDV
Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
Permoserstr. 15 - 04318 Leipzig
Tel.: (0341) 235-1921 - Fax (0341) 235-451921
http://www.ufz.de - eMail: werner.flamme@xxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
References