1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-11-21 08:15:01 -05:00

Only delete/resign sig if it changes

This commit is contained in:
Travis Burtrum 2016-11-05 21:37:43 -04:00
parent 5538c56e37
commit 3323d14803
2 changed files with 3 additions and 4 deletions

View File

@ -96,8 +96,7 @@ sign_packages() {
set -e
cd $(dirname $1)
for pkg in "$@"; do
rm -f "${pkg}.sig"
gpg -u 'ECB9B8CBAAC68C03!' --detach-sign --use-agent $pkg
gpg -v "${pkg}.sig" 2>/dev/null || (rm -f "${pkg}.sig"; gpg -u 'ECB9B8CBAAC68C03!' --detach-sign --use-agent "$pkg")
done
)
}

View File

@ -4,7 +4,7 @@ cd aur
cp -a /etc/pacman.conf /etc/pacman.d/mirrorlist ./
# sign everything
gpg -u 'ECB9B8CBAAC68C03!' -b pacman.conf
gpg -u 'ECB9B8CBAAC68C03!' -b mirrorlist
gpg -v pacman.conf.sig 2>/dev/null || (rm -f pacman.conf.sig; gpg -u 'ECB9B8CBAAC68C03!' -b pacman.conf)
gpg -v mirrorlist.sig 2>/dev/null || (rm -f mirrorlist.sig; gpg -u 'ECB9B8CBAAC68C03!' -b mirrorlist)
rsync -av --stats --progress --delete ./ root@mytorrentflux:/pacman/aur/