summaryrefslogtreecommitdiff
path: root/archPackagesUpdate
diff options
context:
space:
mode:
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-xarchPackagesUpdate12
1 files changed, 11 insertions, 1 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate
index a34b57cf..489eb2ed 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