From fd2d174dd1b10a0f4580b30179ccc2992a15be10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 4 Jan 2021 16:13:04 +0100 Subject: DEB tdeio-umountwrapper: Delete the servicemenus directories only if it still exists. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- debian/_base/applications/tdeio-umountwrapper/debian/postinst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'debian/_base/applications/tdeio-umountwrapper') 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 ;; -- cgit v1.2.1