Skip to content

Commit

Permalink
app-portage/gentoolkit: fix default repo for Prefix, #632223
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/632223
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Fabian Groffen <[email protected]>
  • Loading branch information
grobian committed Jan 7, 2021
1 parent 280c4f8 commit 31145b9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions app-portage/gentoolkit/gentoolkit-0.5.0-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
9 changes: 8 additions & 1 deletion app-portage/gentoolkit/gentoolkit-9999.ebuild
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 31145b9

Please sign in to comment.