commit:     cec70b7567a453252415eabfb959421cd0eda9ab
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 10 11:56:32 2017 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Sun Dec 10 11:58:11 2017 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=cec70b75

bootstrap-prefix.sh: no need to make custom repos.conf.

  The portage default just works.

 scripts/bootstrap-prefix.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index f811cf6887..1059b15c68 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -641,9 +641,7 @@ bootstrap_portage() {
 
        [[ -e "${ROOT}"/tmp/usr/portage ]] || ln -s "${PORTDIR}" 
"${ROOT}"/tmp/usr/portage
 
-       if is-rap; then
-               cp -f "${ROOT}"/etc/portage/repos.conf 
"${ROOT}"/tmp/usr/share/portage/config/repos.conf
-       elif [[ -s ${PORTDIR}/profiles/repo_name ]]; then
+       if [[ -s ${PORTDIR}/profiles/repo_name ]]; then
                # sync portage's repos.conf with the tree being used
                sed -i -e 
"s,gentoo_prefix,$(<"${PORTDIR}"/profiles/repo_name)," 
"${ROOT}"/tmp/usr/share/portage/config/repos.conf || return 1
        fi

Reply via email to