allow different archs
This commit is contained in:
parent
a2197b4f5e
commit
f00149aa18
3
utils.py
3
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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue