Commit f4f1921f authored by Johannes Löthberg's avatar Johannes Löthberg Committed by Lukas Fleischer
Browse files

git-update: Fix error when printing SRCINFO errors

This commit fixes a bug introduced by ae2907a5

 (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: default avatarMarty <vadmium+al@gmail.com>
Signed-off-by: Johannes Löthberg's avatarJohannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent ea59f727
......@@ -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']
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment