diff options
Diffstat (limited to 'ubuntu/precise/metapackages/rename-meta/debian/kio-umountwrapper-trinity.preinst')
-rw-r--r-- | ubuntu/precise/metapackages/rename-meta/debian/kio-umountwrapper-trinity.preinst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ubuntu/precise/metapackages/rename-meta/debian/kio-umountwrapper-trinity.preinst b/ubuntu/precise/metapackages/rename-meta/debian/kio-umountwrapper-trinity.preinst new file mode 100644 index 000000000..b7af2273b --- /dev/null +++ b/ubuntu/precise/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 |