daca2-getpackages: terminate with an exit code if download fails
This commit is contained in:
parent
c77f31319d
commit
8f7eae2948
|
@ -35,7 +35,7 @@ def wget(filepath):
|
|||
|
||||
def getpackages():
|
||||
if not wget('ls-lR.gz'):
|
||||
return []
|
||||
sys.exit(1)
|
||||
subprocess.call(['nice', 'gunzip', 'ls-lR.gz'])
|
||||
f = open('ls-lR', 'rt')
|
||||
lines = f.readlines()
|
||||
|
|
Loading…
Reference in New Issue