summaryrefslogtreecommitdiff
path: root/git-interface
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-06-08 13:01:35 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-06-08 14:26:26 +0200
commit6e52439e6f23eb1879c7f9ee6113cfc677992639 (patch)
treeb7f33f113006dd483c5a73a21111325e596c9705 /git-interface
parentdebe76299dc1521ae8964dfbf60bf7941b5d29ee (diff)
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>
Diffstat (limited to 'git-interface')
-rwxr-xr-xgit-interface/git-update.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-interface/git-update.py b/git-interface/git-update.py
index b2a00d6..073e650 100755
--- a/git-interface/git-update.py
+++ b/git-interface/git-update.py
@@ -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: