From 048d8750d412646536a404f215e8a8afdbefbccd Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 20 Apr 2016 10:39:14 +0200 Subject: archPackagesUpdate signiert nun notfalls auch von Hand --- archPackagesUpdate | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'archPackagesUpdate') 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 -- cgit v1.2.3-70-g09d2