summarylogtreecommitdiffstats
path: root/leo.install
diff options
context:
space:
mode:
Diffstat (limited to 'leo.install')
-rw-r--r--leo.install26
1 files changed, 26 insertions, 0 deletions
diff --git a/leo.install b/leo.install
new file mode 100644
index 000000000000..4c6b01bdfdb2
--- /dev/null
+++ b/leo.install
@@ -0,0 +1,26 @@
+# arg 1: the new package version
+post_install() {
+ update-desktop-database -q
+ update-mime-database usr/share/mime >/dev/null
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install $1
+}
+
+# arg 1: the old package version
+pre_remove() {
+/bin/true
+}
+
+post_remove() {
+ update-desktop-database -q
+ update-mime-database usr/share/mime >/dev/null
+}
+
+op=$1
+shift
+
+$op "$@"