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:
Johannes Löthberg 2015-06-08 13:01:35 +02:00 committed by Lukas Fleischer
parent debe76299d
commit 6e52439e6f

View file

@ -238,7 +238,8 @@ for commit in walker:
die_commit('missing %s file: %s' % (field, pkginfo[field]), die_commit('missing %s file: %s' % (field, pkginfo[field]),
commit.id) 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: if "://" in fname or "lp:" in fname:
continue continue
if not fname in commit.tree: if not fname in commit.tree: