commit: d98cbfb414bf24f758b06f334ce1744847dc31b5
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 30 07:03:38 2022 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Jun 30 07:04:52 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d98cbfb4
app-editors/nano: Sync live ebuild
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
app-editors/nano/nano-9999.ebuild | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/app-editors/nano/nano-9999.ebuild
b/app-editors/nano/nano-9999.ebuild
index 25ad3e614940..c2da47a585b9 100644
--- a/app-editors/nano/nano-9999.ebuild
+++ b/app-editors/nano/nano-9999.ebuild
@@ -91,3 +91,13 @@ src_install() {
use split-usr && dosym ../../bin/nano /usr/bin/nano
}
+
+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}."
+ ewarn "You can update it with \"eselect editor\"."
+ fi
+}