From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 06C3B158094 for ; Wed, 29 Jun 2022 09:09:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 48EE6E0C09; Wed, 29 Jun 2022 09:09:18 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 31F7AE0C09 for ; Wed, 29 Jun 2022 09:09:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6FB373419EF for ; Wed, 29 Jun 2022 09:09:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C321951B for ; Wed, 29 Jun 2022 09:09:15 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1656493749.6f0a95daae18c8bb7c99acd1a3430651e2d6ca75.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/nano/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-editors/nano/nano-6.3.ebuild X-VCS-Directories: app-editors/nano/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 6f0a95daae18c8bb7c99acd1a3430651e2d6ca75 X-VCS-Branch: master Date: Wed, 29 Jun 2022 09:09:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 830f27e8-c778-40e7-b87b-f68110a275f4 X-Archives-Hash: 67f4654631c82ab9a6204faa85fc2c7d commit: 6f0a95daae18c8bb7c99acd1a3430651e2d6ca75 Author: Ulrich Müller gentoo org> AuthorDate: Wed Jun 29 07:38:13 2022 +0000 Commit: Sam James gentoo org> CommitDate: Wed Jun 29 09:09:09 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f0a95da app-editors/nano: Warn in pkg_postrm about updating EDITOR Closes: https://bugs.gentoo.org/819342 Signed-off-by: Ulrich Müller gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/26133 Signed-off-by: Sam James gentoo.org> app-editors/nano/nano-6.3.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app-editors/nano/nano-6.3.ebuild b/app-editors/nano/nano-6.3.ebuild index 9bd57c68b191..ff0fcf25cd44 100644 --- a/app-editors/nano/nano-6.3.ebuild +++ b/app-editors/nano/nano-6.3.ebuild @@ -91,3 +91,12 @@ src_install() { use split-usr && dosym ../../bin/nano /usr/bin/nano } + +pkg_postrm() { + local e + 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 +}