summaryrefslogtreecommitdiff
path: root/libre/pacman/pacman.install
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-01-05 16:10:40 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-01-05 16:10:40 -0300
commit6550e3926da7432dd8287740ddc488e37ece05c4 (patch)
tree7baaf847dff6d64ea51d290d7f9cf942ccecadb7 /libre/pacman/pacman.install
parenta8731e767fbd0e9364635447bac600259e8a0333 (diff)
libre/pacman-4.0.1-3
Diffstat (limited to 'libre/pacman/pacman.install')
-rw-r--r--libre/pacman/pacman.install11
1 files changed, 11 insertions, 0 deletions
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() {