1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-04 14:43:38 +02:00

- Abort when the server is not answering with 200 or 404 when downloading _pubkey files

- really use the internal rpm signature check
This commit is contained in:
2013-03-19 17:17:14 +01:00
parent d082c75958
commit b0ddb63432

View File

@@ -270,6 +270,11 @@ class Fetcher:
os.unlink(dest)
sys.exit(0)
except URLGrabError, e:
# Not found is okay, let's go to the next project
if e.code != 404:
print >>sys.stderr, "Invalid answer from server", e
sys.exit(1)
if self.http_debug:
print >>sys.stderr, "can't fetch key for %s: %s" %(i, e.strerror)
print >>sys.stderr, "url: %s" % url
@@ -356,7 +361,7 @@ def verify_pacs(bi):
"""
pac_list = [ i.fullfilename for i in bi.deps ]
if not conf.config['builtin_signature_check']:
if conf.config['builtin_signature_check'] != True:
return verify_pacs_old(pac_list)
if not pac_list: