diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-01-04 16:13:04 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-01-04 16:13:04 +0100 |
commit | fd2d174dd1b10a0f4580b30179ccc2992a15be10 (patch) | |
tree | bbf82fd4aa69b48194c204b3540b4da15277a519 /ubuntu/_base/applications | |
parent | 21add6f4932d847e979909e413c6d7d03d71b402 (diff) | |
download | tde-packaging-fd2d174dd1b10a0f4580b30179ccc2992a15be10.tar.gz tde-packaging-fd2d174dd1b10a0f4580b30179ccc2992a15be10.zip |
DEB tdeio-umountwrapper: Delete the servicemenus directories only if it still exists.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ubuntu/_base/applications')
-rw-r--r-- | ubuntu/_base/applications/tdeio-umountwrapper/debian/postinst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ubuntu/_base/applications/tdeio-umountwrapper/debian/postinst b/ubuntu/_base/applications/tdeio-umountwrapper/debian/postinst index 44575ff80..704b3af61 100644 --- a/ubuntu/_base/applications/tdeio-umountwrapper/debian/postinst +++ b/ubuntu/_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 ;; |