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

Anatol Pomozov anatolik at nymeria.archlinux.org
Wed Mar 12 18:30:09 UTC 2014


    Date: Wednesday, March 12, 2014 @ 19:30:09
  Author: anatolik
Revision: 107118

Do not use compaund expressions as it will return error if the program is absent

Modified:
  mldonkey/trunk/mldonkey.install

------------------+
 mldonkey.install |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

Modified: mldonkey.install
===================================================================
--- mldonkey.install	2014-03-12 18:23:14 UTC (rev 107117)
+++ mldonkey.install	2014-03-12 18:30:09 UTC (rev 107118)
@@ -8,7 +8,10 @@
 
   mkdir -p /var/lib/mldonkey
   chown mldonkey:mldonkey /var/lib/mldonkey
-  type -P update-desktop-database >/dev/null && update-desktop-database -q
+
+  if type -P update-desktop-database &> /dev/null; then
+    update-desktop-database -q
+  fi
 }
 
 post_upgrade() {
@@ -23,5 +26,7 @@
     groupdel mldonkey
   fi
 
-  type -P update-desktop-database >/dev/null && update-desktop-database -q
+  if type -P update-desktop-database &> /dev/null; then
+    update-desktop-database -q
+  fi
 }




More information about the arch-commits mailing list