[aur-dev] [PATCH v2] 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> --- git-interface/git-update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-interface/git-update.py b/git-interface/git-update.py index b7eaa14..8852b04 100755 --- a/git-interface/git-update.py +++ b/git-interface/git-update.py @@ -241,7 +241,7 @@ for commit in walker: die_commit('missing %s file: %s' % (field, pkginfo[field]), commit.id) - for fname in pkginfo['source']: + for fname in extract_arch_fields(pkginfo, 'source'): if "://" in fname or "lp:" in fname: continue if not fname in commit.tree: -- 2.4.2
On Mon, 08 Jun 2015 at 13:01:35, Johannes Löthberg wrote:
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> --- git-interface/git-update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) [...]
Applied, thanks!
participants (2)
-
Johannes Löthberg
-
Lukas Fleischer