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