summaryrefslogtreecommitdiff
path: root/archPackagesUpdate
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-20 10:39:14 +0200
committerErich Eckner <git@eckner.net>2016-04-20 11:08:13 +0200
commit048d8750d412646536a404f215e8a8afdbefbccd (patch)
treec622b01199d4abd2f2a74c10aac078e631af44f7 /archPackagesUpdate
parent65483350165e6369118ec71c9da7efa1e9fd14f7 (diff)
downloadarchlinuxewe-048d8750d412646536a404f215e8a8afdbefbccd.tar.xz
archPackagesUpdate signiert nun notfalls auch von Hand
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-xarchPackagesUpdate12
1 files changed, 11 insertions, 1 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate
index a34b57cf9..489eb2ed9 100755
--- a/archPackagesUpdate
+++ b/archPackagesUpdate
@@ -297,7 +297,7 @@ then
vers="${verss[${i}]}"
cd "${tmpDir}/${paket}"
- rm -f ${paket}-*-${arch}.pkg.tar.xz
+ rm -f ${paket}-*-${arch}.pkg.tar.xz*
if [ "${arch}" == "i686" ]
then
@@ -328,6 +328,16 @@ then
fi
[ ${err[${i}]} -gt ${maxErr} ] && maxErr=${err[${i}]}
+ if ! gpg --verify ${paket}-${vers}-${arch}.pkg.tar.xz{.sig,} &> /dev/null
+ then
+ key="$(
+ grep '^GPGKEY=' "${tmpDir}/makepkg.conf" | \
+ sed 's|^GPGKEY=\s*"\(.*\)"\s*$|0x\1|'
+ )"
+ rm -f "${paket}-${vers}-${arch}.pkg.tar.xz.sig"
+ gpg --detach-sign -u "${key}" --no-armor ${paket}-${vers}-${arch}.pkg.tar.xz
+ fi
+
if ${upload} && [ ${err[${i}]} -eq 0 ]
then