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
 }

Reply via email to