summaryrefslogtreecommitdiff
path: root/pcr/petri-foo/petri-foo.install
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/petri-foo/petri-foo.install')
-rw-r--r--pcr/petri-foo/petri-foo.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/pcr/petri-foo/petri-foo.install b/pcr/petri-foo/petri-foo.install
new file mode 100644
index 000000000..5dd24bbe5
--- /dev/null
+++ b/pcr/petri-foo/petri-foo.install
@@ -0,0 +1,19 @@
+updatedesktopdtb() {
+ [ -x /usr/bin/update-desktop-database ] \
+ && update-desktop-database -q
+ [ -x /usr/bin/update-mime-database ] \
+ && update-mime-database usr/share/mime > /dev/null 2>&1
+}
+
+post_install() {
+ updatedesktopdtb
+}
+
+post_upgrade() {
+ updatedesktopdtb
+}
+
+post_remove() {
+ updatedesktopdtb
+}
+