summaryrefslogtreecommitdiffstats
path: root/ubuntu/raring/metapackages/rename-meta/debian/kio-umountwrapper-trinity.preinst
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu/raring/metapackages/rename-meta/debian/kio-umountwrapper-trinity.preinst')
-rw-r--r--ubuntu/raring/metapackages/rename-meta/debian/kio-umountwrapper-trinity.preinst22
1 files changed, 22 insertions, 0 deletions
diff --git a/ubuntu/raring/metapackages/rename-meta/debian/kio-umountwrapper-trinity.preinst b/ubuntu/raring/metapackages/rename-meta/debian/kio-umountwrapper-trinity.preinst
new file mode 100644
index 000000000..b7af2273b
--- /dev/null
+++ b/ubuntu/raring/metapackages/rename-meta/debian/kio-umountwrapper-trinity.preinst
@@ -0,0 +1,22 @@
+#! /bin/sh
+
+set -e
+
+package_name=kio-umountwrapper-trinity
+
+divert=`dpkg-divert --listpackage "/opt/trinity/share/apps/konqueror/servicemenus/media_safelyremove.desktop"`
+if [ -n "$divert" ] && [ "$divert" = $package_name ]; then
+ dpkg-divert --package $package_name --remove --rename /opt/trinity/share/apps/konqueror/servicemenus/media_safelyremove.desktop
+fi
+
+divert=`dpkg-divert --listpackage "/opt/trinity/share/apps/dolphin/servicemenus/media_safelyremove.desktop"`
+if [ -n "$divert" ] && [ "$divert" = $package_name ]; then
+ dpkg-divert --package $package_name --remove --rename /opt/trinity/share/apps/dolphin/servicemenus/media_safelyremove.desktop
+fi
+
+divert=`dpkg-divert --listpackage "/opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop"`
+if [ -n "$divert" ] && [ "$divert" = $package_name ]; then
+ dpkg-divert --package $package_name --remove --rename /opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop
+fi
+
+exit 0