mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Use extract_arch_fields when checking for source files
This fixes a bug where pushes are rejected in split PKGBUILDs if there are no arch-independent source array. Fixes FS#45253 Reported-by: Marti <marti@juffo.org> Reported-by: Maxime Gauduin <alucryd@archlinux.org> Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
debe76299d
commit
6e52439e6f
1 changed files with 2 additions and 1 deletions
|
@ -238,7 +238,8 @@ for commit in walker:
|
|||
die_commit('missing %s file: %s' % (field, pkginfo[field]),
|
||||
commit.id)
|
||||
|
||||
for fname in pkginfo['source']:
|
||||
for field in extract_arch_fields(pkginfo, 'source'):
|
||||
fname = field['value']
|
||||
if "://" in fname or "lp:" in fname:
|
||||
continue
|
||||
if not fname in commit.tree:
|
||||
|
|
Loading…
Add table
Reference in a new issue