From 885bbb504afbf014194c8c20a51fc862980da45b Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 12 Jun 2018 10:00:29 -0400 Subject: makepkg: when signing packages, report package filename on failure In commit c6b04c04653ba9933fe978829148312e412a9ea7 the signing function was moved out of fakeroot, and thus out of the create_package loop. This meant that if package signing failed, it was no longer possible to tell which package it failed on by checking which package creation is currently running. Successful signing attempts do not have this problem as we already printed the name of the signature file. Signed-off-by: Eli Schwartz Signed-off-by: Allan McRae --- scripts/libmakepkg/integrity/generate_signature.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/libmakepkg/integrity/generate_signature.sh.in b/scripts/libmakepkg/integrity/generate_signature.sh.in index b53a90d0..e6ff3b1b 100644 --- a/scripts/libmakepkg/integrity/generate_signature.sh.in +++ b/scripts/libmakepkg/integrity/generate_signature.sh.in @@ -40,7 +40,7 @@ create_signature() { if (( ! ret )); then msg2 "$(gettext "Created signature file %s.")" "${filename##*/}.sig" else - warning "$(gettext "Failed to sign package file.")" + warning "$(gettext "Failed to sign package file %s.")" "${filename##*/}" fi return $ret -- cgit v1.2.3-70-g09d2