daca2-getpackages: terminate with an exit code if download fails

This commit is contained in:
Daniel Marjamäki 2019-03-27 06:33:08 +01:00
parent c77f31319d
commit 8f7eae2948
1 changed files with 1 additions and 1 deletions

View File

@ -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()