1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-04 16:49:20 +02:00

raise 'fake' HTTPError 404 on offline build

This commit is contained in:
lethliel
2018-03-07 13:48:26 +01:00
parent 17afaa9f85
commit 5de19d75d5

View File

@@ -265,8 +265,7 @@ class Fetcher:
try:
if self.offline and not os.path.exists(dest):
# try key from parent project
# do nothing atm
# FIXME: needs to raise a HTTP Error
raise HTTPError(url, 404, None, None, None)
elif not self.offline:
OscFileGrabber().urlgrab(url, dest)
# not that many keys usually