www-client/seamonkey: De-uglify new enigmail code a bit.
authorLars Wendler <polynomial-c@gentoo.org>
Mon, 24 Jul 2017 14:17:12 +0000 (16:17 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Mon, 24 Jul 2017 14:17:27 +0000 (16:17 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.3

www-client/seamonkey/seamonkey-2.48-r1.ebuild

index e68716cfedaacf9dc5ed927ae6be5ac75ac263f7..01fae8065d91e3cb19f65ad723b53a40c49e02a1 100644 (file)
@@ -400,13 +400,14 @@ pkg_preinst() {
                        die "Could not find enigmail on disk during pkg_preinst()"
                fi
                if [[ ! -h "${emidpath}" ]] && [[ -d "${emidpath}" ]]; then
-                       rm -Rf "${emidpath}" || (
-                       eerror "Could not remove enigmail directory from previous installation,"
-                       eerror "You must remove this by hand and rename the symbolic link yourself:"
-                       eerror
-                       eerror "\t cd ${EPREFIX}${MOZILLA_FIVE_HOME}/extensions"
-                       eerror "\t rm -Rf ${emid}"
-                       eerror "\t mv ${emid}.backup* ${emid}" )
+                       if ! rm -R --interactive=never "${emidpath}" ; then
+                               eerror "Could not remove enigmail directory from previous installation,"
+                               eerror "You must remove this by hand and rename the symbolic link yourself:"
+                               eerror
+                               eerror "\t cd ${EPREFIX%/}${MOZILLA_FIVE_HOME}/extensions"
+                               eerror "\t rm -Rf ${emid}"
+                               eerror "\t mv ${emid}.backup* ${emid}"
+                       fi
                fi
        fi
 }