summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Mamzikov2016-01-23 00:48:37 +0500
committerAlexander Mamzikov2016-01-23 00:48:37 +0500
commitbdb9b56514e69164bed8570ee0833defa0520163 (patch)
treecf2413425320f15e4dcd5ceaa26eeed68d233143
parent5e175e9355b2106d5212678a44a79653e845eff7 (diff)
downloadaur-bdb9b56514e69164bed8570ee0833defa0520163.tar.gz
-
-rw-r--r--.install8
1 files changed, 4 insertions, 4 deletions
diff --git a/.install b/.install
index 59ccd710260..8e272c0a249 100644
--- a/.install
+++ b/.install
@@ -1,9 +1,9 @@
post_install() {
- /usr/bin/update-desktop-database -q /usr/share/applications > /dev/null
- /usr/bin/update-mime-database -n /usr/share/mime > /dev/null
+ test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database -q /usr/share/applications > /dev/null
+ test -f /usr/bin/update-mime-database && /usr/bin/update-mime-database -n /usr/share/mime > /dev/null
}
post_remove() {
- /usr/bin/update-desktop-database -q /usr/share/applications > /dev/null
- /usr/bin/update-mime-database -n /usr/share/mime > /dev/null
+ test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database -q /usr/share/applications > /dev/null
+ test -f /usr/bin/update-mime-database && /usr/bin/update-mime-database -n /usr/share/mime > /dev/null
} \ No newline at end of file