mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-12-22 19:09:23 +08:00
allow different archs
This commit is contained in:
parent
a2197b4f5e
commit
f00149aa18
1 changed files with 2 additions and 1 deletions
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 a new issue