1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 01:46:13 +01:00

fix --no-init

This commit is contained in:
Ludwig Nussel 2011-02-22 10:48:51 +01:00
parent b489f95746
commit 208230bc58

View File

@ -228,7 +228,8 @@ class Fetcher:
url = makeurl(buildinfo.apiurl, ['source', i, '_pubkey']) url = makeurl(buildinfo.apiurl, ['source', i, '_pubkey'])
try: try:
if self.offline and not os.path.exists(dest): if self.offline and not os.path.exists(dest):
raise oscerr.OscIOError(None, 'Missing pubkey for project \'%s\': --offline not possible' % i) # may need to try parent
raise URLGrabError(2)
elif not self.offline: elif not self.offline:
OscFileGrabber().urlgrab(url, dest) OscFileGrabber().urlgrab(url, dest)
if not i in buildinfo.prjkeys: # not that many keys usually if not i in buildinfo.prjkeys: # not that many keys usually