[arch-commits] Commit in pacman/trunk (PKGBUILD pacman.install)

Dan McGee dan at archlinux.org
Thu Oct 13 14:11:31 EDT 2011


    Date: Thursday, October 13, 2011 @ 14:11:31
  Author: dan
Revision: 140415

upgpkg: pacman 4.0.0-2

4.0.0-2 add install message for pacman-key init

Modified:
  pacman/trunk/PKGBUILD
  pacman/trunk/pacman.install

----------------+
 PKGBUILD       |    2 +-
 pacman.install |   11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-10-13 17:54:15 UTC (rev 140414)
+++ PKGBUILD	2011-10-13 18:11:31 UTC (rev 140415)
@@ -4,7 +4,7 @@
 
 pkgname=pacman
 pkgver=4.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A library-based package manager with dependency support"
 arch=('i686' 'x86_64')
 url="http://www.archlinux.org/pacman/"

Modified: pacman.install
===================================================================
--- pacman.install	2011-10-13 17:54:15 UTC (rev 140414)
+++ pacman.install	2011-10-13 18:11:31 UTC (rev 140415)
@@ -9,8 +9,19 @@
     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() {
     echo ">>> The pacman database format has changed as of pacman 3.5.0."
     echo ">>> You will need to run \`pacman-db-upgrade\` as root."



More information about the arch-commits mailing list