summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/_base/applications/tdeio-umountwrapper/debian/postinst2
1 files changed, 2 insertions, 0 deletions
diff --git a/debian/_base/applications/tdeio-umountwrapper/debian/postinst b/debian/_base/applications/tdeio-umountwrapper/debian/postinst
index 44575ff80..704b3af61 100644
--- a/debian/_base/applications/tdeio-umountwrapper/debian/postinst
+++ b/debian/_base/applications/tdeio-umountwrapper/debian/postinst
@@ -26,11 +26,13 @@ case "$1" in
divert=`dpkg-divert --listpackage "/opt/trinity/share/apps/konqueror/servicemenus/media_safelyremove.desktop"`
if [ -n "$divert" ] && [ "$divert" = "tdeio-umountwrapper-trinity" ]; then
dpkg-divert --rename --remove /opt/trinity/share/apps/konqueror/servicemenus/media_safelyremove.desktop
+ [ ! -d /opt/trinity/share/apps/konqueror/servicemenus ] || \
rmdir --ignore-fail-on-non-empty /opt/trinity/share/apps/konqueror/servicemenus/
fi
divert=`dpkg-divert --listpackage "/opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop"`
if [ -n "$divert" ] && [ "$divert" = "tdeio-umountwrapper-trinity" ]; then
dpkg-divert --rename --remove /opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop
+ [ ! -d /opt/trinity/share/apps/d3lphin/servicemenus ] || \
rmdir --ignore-fail-on-non-empty /opt/trinity/share/apps/d3lphin/servicemenus/
fi
;;