git-update: Fix error when printing SRCINFO errors

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 <vadmium+al@gmail.com>
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Johannes Löthberg 2015-07-04 13:39:16 +02:00 committed by Lukas Fleischer
parent ea59f72778
commit f4f1921fc6

View file

@ -242,7 +242,7 @@ for commit in walker:
"when parsing .SRCINFO in commit\n") "when parsing .SRCINFO in commit\n")
sys.stderr.write("error: {:s}:\n".format(str(commit.id))) sys.stderr.write("error: {:s}:\n".format(str(commit.id)))
for error in errors: 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) exit(1)
srcinfo_pkgbase = srcinfo._pkgbase['pkgname'] srcinfo_pkgbase = srcinfo._pkgbase['pkgname']