mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-22 13:00:40 +08:00
some pkgbuild has no quotation mark in arch
This commit is contained in:
parent
53165071c7
commit
fe3b51fadf
1 changed files with 1 additions and 1 deletions
2
utils.py
2
utils.py
|
@ -211,7 +211,7 @@ def get_arch_from_pkgbuild(fpath):
|
|||
with open(fpath, 'r') as f:
|
||||
for line in f.read().split('\n'):
|
||||
if line.startswith('arch='):
|
||||
matches = re.findall('[\'\"]([^\'\"]+)[\'\"]', line)
|
||||
matches = re.findall('[()\s\'\"]([\w]+)[()\s\'\"]', line)
|
||||
if not matches:
|
||||
raise TypeError('Unexpected PKGBUILD format')
|
||||
matches = [arch for arch in matches if arch in ARCHS]
|
||||
|
|
Loading…
Reference in a new issue