summaryrefslogtreecommitdiffstats
path: root/ubuntu/raring/metapackages/rename-meta/debian/kio-umountwrapper-trinity.preinst
blob: b7af2273bd9589113fa512a9c576d43e3560932e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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