From 6e52439e6f23eb1879c7f9ee6113cfc677992639 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 8 Jun 2015 13:01:35 +0200 Subject: Use extract_arch_fields when checking for source files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reported-by: Maxime Gauduin Signed-off-by: Johannes Löthberg Signed-off-by: Lukas Fleischer --- git-interface/git-update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'git-interface') 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: -- cgit v1.2.3-54-g00ecf