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:
parent
5538c56e37
commit
3323d14803
3
arch-ppa
3
arch-ppa
@ -96,8 +96,7 @@ sign_packages() {
|
|||||||
set -e
|
set -e
|
||||||
cd $(dirname $1)
|
cd $(dirname $1)
|
||||||
for pkg in "$@"; do
|
for pkg in "$@"; do
|
||||||
rm -f "${pkg}.sig"
|
gpg -v "${pkg}.sig" 2>/dev/null || (rm -f "${pkg}.sig"; gpg -u 'ECB9B8CBAAC68C03!' --detach-sign --use-agent "$pkg")
|
||||||
gpg -u 'ECB9B8CBAAC68C03!' --detach-sign --use-agent $pkg
|
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
4
push.sh
4
push.sh
@ -4,7 +4,7 @@ cd aur
|
|||||||
cp -a /etc/pacman.conf /etc/pacman.d/mirrorlist ./
|
cp -a /etc/pacman.conf /etc/pacman.d/mirrorlist ./
|
||||||
|
|
||||||
# sign everything
|
# sign everything
|
||||||
gpg -u 'ECB9B8CBAAC68C03!' -b pacman.conf
|
gpg -v pacman.conf.sig 2>/dev/null || (rm -f pacman.conf.sig; gpg -u 'ECB9B8CBAAC68C03!' -b pacman.conf)
|
||||||
gpg -u 'ECB9B8CBAAC68C03!' -b mirrorlist
|
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/
|
rsync -av --stats --progress --delete ./ root@mytorrentflux:/pacman/aur/
|
||||||
|
Loading…
Reference in New Issue
Block a user