Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/libmakepkg/integrity/generate_signature.sh.in8
-rw-r--r--scripts/makepkg.sh.in2
2 files changed, 7 insertions, 3 deletions
diff --git a/scripts/libmakepkg/integrity/generate_signature.sh.in b/scripts/libmakepkg/integrity/generate_signature.sh.in
index e6ff3b1b..b6138824 100644
--- a/scripts/libmakepkg/integrity/generate_signature.sh.in
+++ b/scripts/libmakepkg/integrity/generate_signature.sh.in
@@ -47,6 +47,8 @@ create_signature() {
}
create_package_signatures() {
+ local ret=0
+
if [[ $SIGNPKG != 'y' ]]; then
return 0
fi
@@ -59,7 +61,7 @@ create_package_signatures() {
pkgarch=$(get_pkg_arch $pkg)
pkg_file="$PKGDEST/${pkg}-${fullver}-${pkgarch}${PKGEXT}"
- create_signature "$pkg_file"
+ create_signature "$pkg_file" || ret=$?
done
# check if debug package needs a signature
@@ -68,7 +70,9 @@ create_package_signatures() {
pkgarch=$(get_pkg_arch)
pkg_file="$PKGDEST/${pkg}-${fullver}-${pkgarch}${PKGEXT}"
if [[ -f $pkg_file ]]; then
- create_signature "$pkg_file"
+ create_signature "$pkg_file" || ret=$?
fi
fi
+
+ return $ret
}
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 4559afec..4d9948ec 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1481,7 +1481,7 @@ else
enter_fakeroot
- create_package_signatures
+ create_package_signatures || exit $E_PRETTY_BAD_PRIVACY
fi
# if inhibiting archive creation, go no further