[pacman-dev] [PATCH] Fix signing of debug packages

Allan McRae allan at archlinux.org
Mon Jun 18 06:52:51 UTC 2018


Commit 9c8d7a80 broke the signing of debug packages by merging code up but
not changing the test condition.

Signed-off-by: Allan McRae <allan at archlinux.org>
---

Using this minimal fix for 5.1.1.   Eli's patch refacotring this will
be considered later.

 scripts/libmakepkg/integrity/generate_signature.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/libmakepkg/integrity/generate_signature.sh.in b/scripts/libmakepkg/integrity/generate_signature.sh.in
index 442fe031..b53a90d0 100644
--- a/scripts/libmakepkg/integrity/generate_signature.sh.in
+++ b/scripts/libmakepkg/integrity/generate_signature.sh.in
@@ -63,7 +63,7 @@ create_package_signatures() {
 	done
 
 	# check if debug package needs a signature
-	if ! check_option "debug" "y" || ! check_option "strip" "y"; then
+	if check_option "debug" "y" && check_option "strip" "y"; then
 		pkg=$pkgbase- at DEBUGSUFFIX@
 		pkgarch=$(get_pkg_arch)
 		pkg_file="$PKGDEST/${pkg}-${fullver}-${pkgarch}${PKGEXT}"
-- 
2.17.1


More information about the pacman-dev mailing list