From 730df33c514f3f07144abfc979f08a7127ed0de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 3 Dec 2013 19:58:52 +0100 Subject: Fix removing diverts from renamed packages on Debian and Ubuntu --- .../rename-meta/debian/kdesudo-trinity.preinst | 13 ------------- .../debian/kio-umountwrapper-trinity.preinst | 22 ---------------------- 2 files changed, 35 deletions(-) delete mode 100644 debian/wheezy/metapackages/rename-meta/debian/kdesudo-trinity.preinst delete mode 100644 debian/wheezy/metapackages/rename-meta/debian/kio-umountwrapper-trinity.preinst (limited to 'debian/wheezy/metapackages') diff --git a/debian/wheezy/metapackages/rename-meta/debian/kdesudo-trinity.preinst b/debian/wheezy/metapackages/rename-meta/debian/kdesudo-trinity.preinst deleted file mode 100644 index 12e16e22d..000000000 --- a/debian/wheezy/metapackages/rename-meta/debian/kdesudo-trinity.preinst +++ /dev/null @@ -1,13 +0,0 @@ -#! /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 diff --git a/debian/wheezy/metapackages/rename-meta/debian/kio-umountwrapper-trinity.preinst b/debian/wheezy/metapackages/rename-meta/debian/kio-umountwrapper-trinity.preinst deleted file mode 100644 index b7af2273b..000000000 --- a/debian/wheezy/metapackages/rename-meta/debian/kio-umountwrapper-trinity.preinst +++ /dev/null @@ -1,22 +0,0 @@ -#! /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 -- cgit v1.2.1