allow different archs

This commit is contained in:
JerryXiao 2019-04-09 21:46:50 +08:00
parent a2197b4f5e
commit f00149aa18
Signed by: Jerry
GPG Key ID: 9D9CE43650FF2BAA
1 changed files with 2 additions and 1 deletions

View File

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