mirror of
https://github.com/moparisthebest/arch-ppa
synced 2024-12-21 05:58:48 -05:00
Only delete/resign sig if it changes
This commit is contained in:
parent
5538c56e37
commit
3323d14803
3
arch-ppa
3
arch-ppa
@ -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
|
||||
)
|
||||
}
|
||||
|
4
push.sh
4
push.sh
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user