From f00149aa186876f277d5f27776e33c6e90931769 Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 9 Apr 2019 21:46:50 +0800 Subject: [PATCH] allow different archs --- utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 4b54a7b..80931f3 100644 --- a/utils.py +++ b/utils.py @@ -209,7 +209,8 @@ def get_arch_from_pkgbuild(fpath): matches = re.findall('[\'\"]([^\'\"]+)[\'\"]', line) if not matches: raise TypeError('Unexpected PKGBUILD format') - assert not [None for match in matches if match not in ARCHS] + matches = [arch for arch in matches if arch in ARCHS] + assert matches return matches raise TypeError('Unexpected PKGBUILD')