The DB upgrade must be done after key initialization

This commit is contained in:
Pedro Algarvio 2015-01-07 01:28:32 +00:00
parent 20cbbcafc7
commit b8244d24ea

View file

@ -3380,14 +3380,14 @@ install_amazon_linux_ami_testing_post() {
#
install_arch_linux_stable_deps() {
if [ "$(which pacman-db-upgrade)" != "" ]; then
pacman-db-upgrade || return 1
fi
if [ ! -f /etc/pacman.d/gnupg ]; then
pacman-key --init && pacman-key --populate archlinux || return 1
fi
if [ "$(which pacman-db-upgrade)" != "" ]; then
pacman-db-upgrade || return 1
fi
if [ "$_UPGRADE_SYS" -eq $BS_TRUE ]; then
pacman -Syyu --noconfirm --needed || return 1
fi