summaryrefslogtreecommitdiffstats
path: root/abs/core/archlinux-keyring/archlinux-keyring.install
blob: 19f594b8406c89823ebbfbe056df853a5cc215e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
post_upgrade() {
	if usr/bin/pacman-key -l >/dev/null 2>&1; then
		usr/bin/pacman-key --populate archlinux

		# Re-enable key of dwallace
		# See https://bugs.archlinux.org/task/35478
		if [ -z "$2" ] || [ "$2" = "20130525-1" ]; then
			printf 'enable\nquit\n' | LANG=C \
				gpg --homedir /etc/pacman.d/gnupg \
				--no-permission-warning --command-fd 0 \
				--quiet --batch --edit-key \
				5559BC1A32B8F76B3FCCD9555FA5E5544F010D48 \
				2>/dev/null
		fi
	fi
}

post_install() {
	if [ -x usr/bin/pacman-key ]; then
		post_upgrade
	fi
}