From f4f1921fc60a759c647fb6004655c4dd9e8639cd Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 4 Jul 2015 13:39:16 +0200 Subject: git-update: Fix error when printing SRCINFO errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes a bug introduced by ae2907a (git: Use .format everywhere instead of %, 2015-06-27) where passing the error tuple to .format wasn't prefixed with an asterisk. Fixes FS#45545. Reported-by: Marty Signed-off-by: Johannes Löthberg Signed-off-by: Lukas Fleischer --- git-interface/git-update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-interface') diff --git a/git-interface/git-update.py b/git-interface/git-update.py index 592f127..ba65cab 100755 --- a/git-interface/git-update.py +++ b/git-interface/git-update.py @@ -242,7 +242,7 @@ for commit in walker: "when parsing .SRCINFO in commit\n") sys.stderr.write("error: {:s}:\n".format(str(commit.id))) for error in errors: - sys.stderr.write("error: line {:d}: {:s}\n".format(error)) + sys.stderr.write("error: line {:d}: {:s}\n".format(*error)) exit(1) srcinfo_pkgbase = srcinfo._pkgbase['pkgname'] -- cgit v1.2.3-70-g09d2