diff options
author | Fabian Groffen <grobian@gentoo.org> | 2021-01-07 16:41:06 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2021-01-07 16:41:06 +0100 |
commit | 31145b96664db74c1e0069d8006a2cfed1fd371e (patch) | |
tree | 693544abbd92a477a642dd5fab7a46d24cd1f21b /app-portage | |
parent | www-apps/baikal: use relative symlink to config (diff) | |
download | gentoo-31145b96664db74c1e0069d8006a2cfed1fd371e.tar.gz gentoo-31145b96664db74c1e0069d8006a2cfed1fd371e.tar.bz2 gentoo-31145b96664db74c1e0069d8006a2cfed1fd371e.zip |
app-portage/gentoolkit: fix default repo for Prefix, #632223
Closes: https://bugs.gentoo.org/632223
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'app-portage')
-rw-r--r-- | app-portage/gentoolkit/gentoolkit-0.5.0-r2.ebuild | 7 | ||||
-rw-r--r-- | app-portage/gentoolkit/gentoolkit-9999.ebuild | 9 |
2 files changed, 15 insertions, 1 deletions
diff --git a/app-portage/gentoolkit/gentoolkit-0.5.0-r2.ebuild b/app-portage/gentoolkit/gentoolkit-0.5.0-r2.ebuild index 541f27e49fb2..3a6ded107004 100644 --- a/app-portage/gentoolkit/gentoolkit-0.5.0-r2.ebuild +++ b/app-portage/gentoolkit/gentoolkit-0.5.0-r2.ebuild @@ -37,6 +37,13 @@ python_prepare_all() { echo VERSION="${PVR}" "${PYTHON}" setup.py set_version VERSION="${PVR}" "${PYTHON}" setup.py set_version distutils-r1_python_prepare_all + + if use prefix-guest ; then + # use correct repo name, bug #632223 + sed -i \ + -e "/load_profile_data/s/repo='gentoo'/repo='gentoo_prefix'/" \ + pym/gentoolkit/profile.py || die + fi } pkg_preinst() { diff --git a/app-portage/gentoolkit/gentoolkit-9999.ebuild b/app-portage/gentoolkit/gentoolkit-9999.ebuild index 44c2b480a314..800d54f340b4 100644 --- a/app-portage/gentoolkit/gentoolkit-9999.ebuild +++ b/app-portage/gentoolkit/gentoolkit-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -33,6 +33,13 @@ python_prepare_all() { echo VERSION="${PVR}" "${PYTHON}" setup.py set_version VERSION="${PVR}" "${PYTHON}" setup.py set_version distutils-r1_python_prepare_all + + if use prefix-guest ; then + # use correct repo name, bug #632223 + sed -i \ + -e "/load_profile_data/s/repo='gentoo'/repo='gentoo_prefix'/" \ + pym/gentoolkit/profile.py || die + fi } pkg_preinst() { |