Fix signing of debug packages

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

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2018-06-18 16:50:58 +10:00
parent 72263e22bd
commit d750c854bc

View file

@ -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-@DEBUGSUFFIX@
pkgarch=$(get_pkg_arch)
pkg_file="$PKGDEST/${pkg}-${fullver}-${pkgarch}${PKGEXT}"