repo.py: assertion bug fix

This commit is contained in:
JerryXiao 2019-04-03 20:50:08 +08:00
parent 2b41bf2084
commit 6de893efa2
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -315,7 +315,8 @@ if __name__ == '__main__':
arch = arch.split(',') if arch is not False else None
remove_pkgs = args.remove
remove_pkgs = remove_pkgs.split(',') if remove_pkgs is not False else None
assert not [None for a in arch if a not in ARCHS] # ensure arch (= ARCHS
if arch is not None:
assert not [None for a in arch if a not in ARCHS] # ensure arch (= ARCHS
if args.update:
_update()
elif args.regenerate: