[arch-commits] Commit in archlinux-keyring/trunk (archlinux-keyring.install)

Pierre Schmitz pierre at archlinux.org
Wed Mar 21 07:31:08 UTC 2012


    Date: Wednesday, March 21, 2012 @ 03:31:07
  Author: pierre
Revision: 153978

do not run pacman-key on install if it does not exist

Modified:
  archlinux-keyring/trunk/archlinux-keyring.install

---------------------------+
 archlinux-keyring.install |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Modified: archlinux-keyring.install
===================================================================
--- archlinux-keyring.install	2012-03-21 07:09:24 UTC (rev 153977)
+++ archlinux-keyring.install	2012-03-21 07:31:07 UTC (rev 153978)
@@ -3,6 +3,8 @@
 }
 
 post_install() {
-	pacman-key --init
-	post_upgrade
+	if which pacman-key >/dev/null 2>&1; then
+		pacman-key --init
+		post_upgrade
+	fi
 }




More information about the arch-commits mailing list