summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2017-08-24 15:20:36 +0900
committerBenda Xu <heroxbd@gentoo.org>2017-08-24 15:21:04 +0900
commit30d6d1eafdfc74a8f0f1d58515aaadd0b8def383 (patch)
tree384ee2b5cb8dbd25b5af44854aff63a5a92e755f /sys-apps/portage/portage-2.3.8.ebuild
parentdev-ruby/rkelly-remix: add ruby24 (diff)
downloadgentoo-30d6d1eafdfc74a8f0f1d58515aaadd0b8def383.tar.gz
gentoo-30d6d1eafdfc74a8f0f1d58515aaadd0b8def383.tar.bz2
gentoo-30d6d1eafdfc74a8f0f1d58515aaadd0b8def383.zip
sys-apps/portage: only prefix-guest use gentoo_prefix repository
prefix-standalone use the default gentoo main repository. This fixes the warnings in prefix-standalone like !!! Section 'gentoo_prefix' in repos.conf has name different \ from repository name 'gentoo' set inside repository Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'sys-apps/portage/portage-2.3.8.ebuild')
-rw-r--r--sys-apps/portage/portage-2.3.8.ebuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys-apps/portage/portage-2.3.8.ebuild b/sys-apps/portage/portage-2.3.8.ebuild
index a5725312861..af287ccb875 100644
--- a/sys-apps/portage/portage-2.3.8.ebuild
+++ b/sys-apps/portage/portage-2.3.8.ebuild
@@ -129,11 +129,14 @@ python_prepare_all() {
-i cnf/make.globals || die "sed failed"
einfo "Adjusting repos.conf ..."
- sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \
- -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \
- -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \
- -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \
+ sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \
-i cnf/repos.conf || die "sed failed"
+ if prefix-guest ; then
+ sed -e "s|^\(main-repo = \).*|\\1gentoo_prefix|" \
+ -e "s|^\\[gentoo\\]|[gentoo_prefix]|" \
+ -e "s|^\(sync-uri = \).*|\\1rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix|" \
+ -i cnf/repos.conf || die "sed failed"
+ fi
einfo "Adding FEATURES=force-prefix to make.globals ..."
echo -e '\nFEATURES="${FEATURES} force-prefix"' >> cnf/make.globals \