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@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@gentoo.org>
This commit is contained in:
Yiyang Wu
2026-02-13 12:43:51 +01:00
committed by Nowa Ammerlaan
parent 83e1e5ac9c
commit 97a97a135e
@@ -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