commit:     05c5df43befd234a462824bc4bd604c687ca4878
Author:     Yuta SATOH <nigoro.dev <AT> gmail <DOT> com>
AuthorDate: Sat Dec  9 21:44:56 2017 +0000
Commit:     Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
CommitDate: Sat Dec  9 21:44:56 2017 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-bsd.git/commit/?id=05c5df43

create_forcestage3.sh: use wget to get the old stage3.

 scripts/mkstages/create_forcestage3.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/mkstages/create_forcestage3.sh 
b/scripts/mkstages/create_forcestage3.sh
index 26210d9..a70a174 100755
--- a/scripts/mkstages/create_forcestage3.sh
+++ b/scripts/mkstages/create_forcestage3.sh
@@ -40,7 +40,11 @@ prepare(){
        if [[ "${OLDSTAGE3}" =~ ^http ]]; then
                if [[ ! -e /tmp/$(basename ${OLDSTAGE3}) ]]; then
                        cd /tmp
-                       fetch "${OLDSTAGE3}"
+                       if type -P wget &> /dev/null ; then
+                               wget -q "${OLDSTAGE3}"
+                       else
+                               fetch "${OLDSTAGE3}"
+                       fi
                fi
        else
                cp -a "${OLDSTAGE3}" /tmp

Reply via email to