summarylogtreecommitdiffstats
path: root/PKGBUILD-keyring.install
blob: c915659a4943d860ba656be0404def2d38305c0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_upgrade() {
	if usr/bin/pacman-key -l >/dev/null 2>&1; then
		usr/bin/pacman-key --populate qubesos-vm
	fi
	release=$(echo "$1" | cut -d '.' -f 1,2)

	if ! [ -h /etc/pacman.d/99-qubes-repository-${release}.conf ] ; then
            ln -s /etc/pacman.d/99-qubes-repository-${release}.conf.disabled /etc/pacman.d/99-qubes-repository-${release}.conf 
        fi

}

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