sys-apps/portage: fix prefix repos.conf support
authorZac Medico <zmedico@gentoo.org>
Sat, 2 Jul 2016 08:28:31 +0000 (01:28 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 2 Jul 2016 08:29:19 +0000 (01:29 -0700)
Package-Manager: portage-2.3.0

sys-apps/portage/portage-2.3.0.ebuild

index b4a805b40caef97f09ba661162a7350b772a2c7f..8e95e2c0f6753fe0bf5a3b55d927088dcc49982b 100644 (file)
@@ -124,7 +124,10 @@ python_prepare_all() {
                        -i cnf/make.globals || die "sed failed"
 
                einfo "Adjusting repos.conf ..."
-               sed -e "s|^\(location = \)\(/usr/portage\)|\\1${EPREFIX}\\2|" \
+               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|" \
                        -i cnf/repos.conf || die "sed failed"
 
                einfo "Adding FEATURES=force-prefix to make.globals ..."