commit: 4354447f01b6d9e24bee6ea4fcac15fc019614fa
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 30 07:01:53 2022 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Jun 30 07:04:51 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4354447f
app-editors/nano: Don't warn when we're replaced by another version
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
app-editors/nano/nano-6.3.ebuild | 1 +
1 file changed, 1 insertion(+)
diff --git a/app-editors/nano/nano-6.3.ebuild b/app-editors/nano/nano-6.3.ebuild
index ff0fcf25cd44..877c7dd59496 100644
--- a/app-editors/nano/nano-6.3.ebuild
+++ b/app-editors/nano/nano-6.3.ebuild
@@ -94,6 +94,7 @@ src_install() {
pkg_postrm() {
local e
+ [[ -n ${REPLACED_BY_VERSION} ]] && return
e=$(unset EDITOR; . "${EROOT}"/etc/profile &>/dev/null; echo
"${EDITOR}")
if [[ ${e##*/} == nano ]]; then
ewarn "The EDITOR variable is still set to ${e}."