summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-11-01 06:47:20 +0100
committerAllan McRae <allan@archlinux.org>2014-03-27 06:24:11 +0100
commitd8f0c3e5b983910dcaef3091ea622ebc3be0f5a0 (patch)
treea0b932051b0383db0172ff726ba47f380f4d1353 /scripts
parentb26432dbdbe7afdaa0743f6509cc69e1c7007981 (diff)
downloadpacman-d8f0c3e5b983910dcaef3091ea622ebc3be0f5a0.tar.gz
pacman-d8f0c3e5b983910dcaef3091ea622ebc3be0f5a0.tar.xz
makepkg: sign source packages with --sign
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index d8cdc889..d9a14e29 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -2060,10 +2060,16 @@ create_srcpackage() {
exit 1 # TODO: error code
fi
+ create_signature "$pkg_file"
+
if [[ ! "$SRCPKGDEST" -ef "${startdir}" ]]; then
rm -f "${pkg_file/$SRCPKGDEST/$startdir}"
ln -s "${pkg_file}" "${pkg_file/$SRCPKGDEST/$startdir}"
ret=$?
+ if [[ -f $pkg_file.sig ]]; then
+ rm -f "${pkg_file/$PKGDEST/$startdir}.sig"
+ ln -s "$pkg_file.sig" "${pkg_file/$PKGDEST/$startdir}.sig"
+ fi
fi
if (( ret )); then