From 6de893efa2a89e0c2480c3a8480ec55af35d2d06 Mon Sep 17 00:00:00 2001 From: Jerry Date: Wed, 3 Apr 2019 20:50:08 +0800 Subject: [PATCH] repo.py: assertion bug fix --- repo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repo.py b/repo.py index aa37713..ee6b48d 100755 --- a/repo.py +++ b/repo.py @@ -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: