summaryrefslogtreecommitdiffstats
path: root/ubuntu/precise/metapackages/rename-meta/debian/kdesudo-trinity.preinst
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu/precise/metapackages/rename-meta/debian/kdesudo-trinity.preinst')
-rw-r--r--ubuntu/precise/metapackages/rename-meta/debian/kdesudo-trinity.preinst13
1 files changed, 13 insertions, 0 deletions
diff --git a/ubuntu/precise/metapackages/rename-meta/debian/kdesudo-trinity.preinst b/ubuntu/precise/metapackages/rename-meta/debian/kdesudo-trinity.preinst
new file mode 100644
index 000000000..12e16e22d
--- /dev/null
+++ b/ubuntu/precise/metapackages/rename-meta/debian/kdesudo-trinity.preinst
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+set -e
+
+package_name=kdesudo-trinity
+
+divert=`dpkg-divert --listpackage "/opt/trinity/bin/kdesu"`
+if [ -n "$divert" ] && [ "$divert" = $package_name ]; then
+ dpkg-divert --package $package_name --rename --remove \
+ /opt/trinity/bin/kdesu
+fi
+
+exit 0