summaryrefslogtreecommitdiffstats
path: root/debian/squeeze/applications/kio-umountwrapper
diff options
context:
space:
mode:
Diffstat (limited to 'debian/squeeze/applications/kio-umountwrapper')
-rw-r--r--debian/squeeze/applications/kio-umountwrapper/debian/preinst33
1 files changed, 22 insertions, 11 deletions
diff --git a/debian/squeeze/applications/kio-umountwrapper/debian/preinst b/debian/squeeze/applications/kio-umountwrapper/debian/preinst
index f1e4f5d24..78e02c765 100644
--- a/debian/squeeze/applications/kio-umountwrapper/debian/preinst
+++ b/debian/squeeze/applications/kio-umountwrapper/debian/preinst
@@ -33,24 +33,35 @@ case "$1" in
--rename /opt/trinity/share/apps/konqueror/servicemenus/media_safelyremove.desktop
dpkg-divert --package $package_name \
+ --divert /opt/trinity/share/apps/dolphin/servicemenus/media_safelyremove.desktop.distrib \
+ --rename /opt/trinity/share/apps/dolphin/servicemenus/media_safelyremove.desktop
+
+ dpkg-divert --package $package_name \
--divert /opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop.distrib \
--rename /opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop
- rm -f /opt/trinity/share/apps/konqueror/servicemenus/media_safelyremove.desktop
- rm -f /opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop
-
;;
upgrade)
- dpkg-divert --package $package_name \
- --divert /opt/trinity/share/apps/konqueror/servicemenus/media_safelyremove.desktop.distrib \
- --rename /opt/trinity/share/apps/konqueror/servicemenus/media_safelyremove.desktop
+ divert=`dpkg-divert --listpackage "/opt/trinity/share/apps/konqueror/servicemenus/media_safelyremove.desktop"`
+ if [ -z "$divert" ]; then
+ dpkg-divert --package $package_name \
+ --divert /opt/trinity/share/apps/konqueror/servicemenus/media_safelyremove.desktop.distrib \
+ --rename /opt/trinity/share/apps/konqueror/servicemenus/media_safelyremove.desktop
+ fi
- dpkg-divert --package $package_name \
- --divert /opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop.distrib \
- --rename /opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop
+ divert=`dpkg-divert --listpackage "/opt/trinity/share/apps/dolphin/servicemenus/media_safelyremove.desktop"`
+ if [ -z "$divert" ]; then
+ dpkg-divert --package $package_name \
+ --divert /opt/trinity/share/apps/dolphin/servicemenus/media_safelyremove.desktop.distrib \
+ --rename /opt/trinity/share/apps/dolphin/servicemenus/media_safelyremove.desktop
+ fi
- rm -f /opt/trinity/share/apps/konqueror/servicemenus/media_safelyremove.desktop
- rm -f /opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop
+ divert=`dpkg-divert --listpackage "/opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop"`
+ if [ -z "$divert" ]; then
+ dpkg-divert --package $package_name \
+ --divert /opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop.distrib \
+ --rename /opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop
+ fi
exit 0
;;