diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-06-08 13:01:35 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-08 14:26:26 +0200 |
commit | 6e52439e6f23eb1879c7f9ee6113cfc677992639 (patch) | |
tree | b7f33f113006dd483c5a73a21111325e596c9705 /git-interface | |
parent | debe76299dc1521ae8964dfbf60bf7941b5d29ee (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-x | git-interface/git-update.py | 3 |
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: |