From 6550e3926da7432dd8287740ddc488e37ece05c4 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Thu, 5 Jan 2012 16:10:40 -0300 Subject: libre/pacman-4.0.1-3 --- libre/pacman/pacman.install | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libre/pacman/pacman.install') diff --git a/libre/pacman/pacman.install b/libre/pacman/pacman.install index 0e598bb4b..4369edab1 100644 --- a/libre/pacman/pacman.install +++ b/libre/pacman/pacman.install @@ -9,6 +9,17 @@ post_upgrade() { if [ "$(vercmp $2 3.5.0)" -lt 0 ]; then _warnupgrade fi + _check_pubring +} + +post_install() { + _check_pubring +} + +_check_pubring() { + if [ ! -f "etc/pacman.d/gnupg/pubring.gpg" ]; then + echo " >>> Run \`pacman-key --init\` to set up your pacman keyring." + fi } _warnupgrade() { -- cgit v1.2.3-54-g00ecf