summaryrefslogtreecommitdiffstats
path: root/ubuntu/raring/metapackages/rename-meta/debian/kdesudo-trinity.preinst
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-09-15 01:40:28 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-09-15 01:43:51 +0200
commitdc647fd5af8a48c5fa421456bdf52194303a1412 (patch)
tree4cd8b252d9abfcd70e353722d6ef2192a63c1116 /ubuntu/raring/metapackages/rename-meta/debian/kdesudo-trinity.preinst
parent885ee6bd7df327175b3dd2f71a441daec3d05ebe (diff)
downloadtde-packaging-dc647fd5af8a48c5fa421456bdf52194303a1412.tar.gz
tde-packaging-dc647fd5af8a48c5fa421456bdf52194303a1412.zip
Fix former service and diverts in rename-meta on Debian and Ubuntu
Diffstat (limited to 'ubuntu/raring/metapackages/rename-meta/debian/kdesudo-trinity.preinst')
-rw-r--r--ubuntu/raring/metapackages/rename-meta/debian/kdesudo-trinity.preinst13
1 files changed, 13 insertions, 0 deletions
diff --git a/ubuntu/raring/metapackages/rename-meta/debian/kdesudo-trinity.preinst b/ubuntu/raring/metapackages/rename-meta/debian/kdesudo-trinity.preinst
new file mode 100644
index 000000000..12e16e22d
--- /dev/null
+++ b/ubuntu/raring/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