From 9c87491d3f89760db988664f092bfbdbb66a1e92 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Thu, 19 Jul 2012 11:34:20 -0300 Subject: libre/pacman-4.0.3-3 recovered rePKGBUILD --- libre/pacman/pacman.install | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libre/pacman/pacman.install') diff --git a/libre/pacman/pacman.install b/libre/pacman/pacman.install index 4369edab1..487819ab7 100644 --- a/libre/pacman/pacman.install +++ b/libre/pacman/pacman.install @@ -9,7 +9,9 @@ post_upgrade() { if [ "$(vercmp $2 3.5.0)" -lt 0 ]; then _warnupgrade fi - _check_pubring + if [ ! -f "etc/pacman.d/gnupg/pubring.gpg" ] || [ "$(vercmp $2 4.0.3-2)" -lt 0 ]; then + _check_pubring + fi } post_install() { @@ -17,9 +19,9 @@ post_install() { } _check_pubring() { - if [ ! -f "etc/pacman.d/gnupg/pubring.gpg" ]; then - echo " >>> Run \`pacman-key --init\` to set up your pacman keyring." - fi + echo " >>> Run \`pacman-key --init; pacman-key --populate archlinux\`" + echo " >>> to import the data required by pacman for package verification." + echo " >>> See: https://www.archlinux.org/news/having-pacman-verify-packages" } _warnupgrade() { -- cgit v1.2.3