commit:     97a97a135ea37d49aa28dfc4b817a1722f1706d2
Author:     Yiyang Wu <xgreenlandforwyy <AT> gmail <DOT> com>
AuthorDate: Sun Feb  8 06:20:38 2026 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Fri Feb 13 11:43:51 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97a97a13

app-portage/command-not-found: proper prefixify for RAP

Do not prefixify command-not-found python script because the search path
should remain without prefix.

Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/37
Merges: https://codeberg.org/gentoo/gentoo/pulls/37
Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>

 ...-not-found-0.0.7.ebuild => command-not-found-0.0.7-r1.ebuild} | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/app-portage/command-not-found/command-not-found-0.0.7.ebuild 
b/app-portage/command-not-found/command-not-found-0.0.7-r1.ebuild
similarity index 88%
rename from app-portage/command-not-found/command-not-found-0.0.7.ebuild
rename to app-portage/command-not-found/command-not-found-0.0.7-r1.ebuild
index 0a5be8ad9949..ac7404aac358 100644
--- a/app-portage/command-not-found/command-not-found-0.0.7.ebuild
+++ b/app-portage/command-not-found/command-not-found-0.0.7-r1.ebuild
@@ -1,11 +1,11 @@
-# Copyright 2019-2025 Gentoo Authors
+# Copyright 2019-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 PYTHON_COMPAT=( python3_{10..13} )
 
-inherit optfeature python-r1
+inherit optfeature prefix python-r1
 
 DESCRIPTION="Command-not-found handler for Gentoo"
 HOMEPAGE="https://github.com/Nowa-Ammerlaan/command-not-found-gentoo";
@@ -21,6 +21,11 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 RDEPEND="${PYTHON_DEPS}"
 
+src_prepare() {
+       default
+       hprefixify command-not-found.sh
+}
+
 src_install() {
        python_foreach_impl python_doscript command-not-found
 

Reply via email to