commit:     e392ba57a6cbcd5401f53c5a8a3fc9bd304f2040
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  1 15:25:29 2023 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Sep  1 15:25:29 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=e392ba57

scripts/bootstrap-prefix: only use Prefix mirrors for Prefix tree

Bug: https://bugs.gentoo.org/913415
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 8e5d6e8b6e..142ef8213e 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -546,11 +546,12 @@ do_tree() {
                # latest tree cannot be fetched from mirrors, always have to
                # respect the source to get the latest
                if [[ -n ${LATEST_TREE_YES} ]] ; then
-                       echo "$1"
                        ( export GENTOO_MIRRORS= DISTFILES_G_O= DISTFILES_PFX= ;
                          efetch "$1/$2" ) || return 1
                else
-                       efetch "$1/$2" || return 1
+                       # use only Prefix mirror
+                       ( export GENTOO_MIRRORS= DISTFILES_G_O= ;
+                         efetch "$1/$2" ) || return 1
                fi
                einfo "Unpacking, this may take a while"
                estatus "stage1: unpacking Portage tree"

Reply via email to