mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-22 21:10:41 +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)
|
matches = re.findall('[\'\"]([^\'\"]+)[\'\"]', line)
|
||||||
if not matches:
|
if not matches:
|
||||||
raise TypeError('Unexpected PKGBUILD format')
|
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
|
return matches
|
||||||
raise TypeError('Unexpected PKGBUILD')
|
raise TypeError('Unexpected PKGBUILD')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue