mirror of
https://github.com/openSUSE/osc.git
synced 2025-10-05 08:59:19 +02:00
raise 'fake' HTTPError 404 on offline build
This commit is contained in:
@@ -265,8 +265,7 @@ class Fetcher:
|
|||||||
try:
|
try:
|
||||||
if self.offline and not os.path.exists(dest):
|
if self.offline and not os.path.exists(dest):
|
||||||
# try key from parent project
|
# try key from parent project
|
||||||
# do nothing atm
|
raise HTTPError(url, 404, None, None, None)
|
||||||
# FIXME: needs to raise a HTTP Error
|
|
||||||
elif not self.offline:
|
elif not self.offline:
|
||||||
OscFileGrabber().urlgrab(url, dest)
|
OscFileGrabber().urlgrab(url, dest)
|
||||||
# not that many keys usually
|
# not that many keys usually
|
||||||
|
Reference in New Issue
Block a user