print failed repos

This commit is contained in:
z4yx 2020-04-05 14:44:48 +08:00
parent f9c2465791
commit 4eb6440414

View File

@ -57,6 +57,7 @@ def main():
args.working_dir.mkdir(parents=True, exist_ok=True)
filelist = tempfile.mkstemp()
failed = []
for os in os_list:
for comp in component_list:
@ -68,7 +69,11 @@ def main():
str(args.working_dir.absolute()),
filelist[1] ]
# print(shell_args)
sp.run(shell_args)
ret = sp.run(shell_args)
if ret.returncode != 0:
failed.append((os, comp, arch))
if len(failed) > 0:
print("Failed APT repos: ", failed)
if args.delete:
pass #TODO