Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/nano/
Date: Thu, 30 Jun 2022 07:04:59
Message-Id: 1656572692.d98cbfb414bf24f758b06f334ce1744847dc31b5.ulm@gentoo
1 commit: d98cbfb414bf24f758b06f334ce1744847dc31b5
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 30 07:03:38 2022 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 30 07:04:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d98cbfb4
7
8 app-editors/nano: Sync live ebuild
9
10 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
11
12 app-editors/nano/nano-9999.ebuild | 10 ++++++++++
13 1 file changed, 10 insertions(+)
14
15 diff --git a/app-editors/nano/nano-9999.ebuild b/app-editors/nano/nano-9999.ebuild
16 index 25ad3e614940..c2da47a585b9 100644
17 --- a/app-editors/nano/nano-9999.ebuild
18 +++ b/app-editors/nano/nano-9999.ebuild
19 @@ -91,3 +91,13 @@ src_install() {
20
21 use split-usr && dosym ../../bin/nano /usr/bin/nano
22 }
23 +
24 +pkg_postrm() {
25 + local e
26 + [[ -n ${REPLACED_BY_VERSION} ]] && return
27 + e=$(unset EDITOR; . "${EROOT}"/etc/profile &>/dev/null; echo "${EDITOR}")
28 + if [[ ${e##*/} == nano ]]; then
29 + ewarn "The EDITOR variable is still set to ${e}."
30 + ewarn "You can update it with \"eselect editor\"."
31 + fi
32 +}