1 |
commit: 05c5df43befd234a462824bc4bd604c687ca4878 |
2 |
Author: Yuta SATOH <nigoro.dev <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Dec 9 21:44:56 2017 +0000 |
4 |
Commit: Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp> |
5 |
CommitDate: Sat Dec 9 21:44:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gentoo-bsd.git/commit/?id=05c5df43 |
7 |
|
8 |
create_forcestage3.sh: use wget to get the old stage3. |
9 |
|
10 |
scripts/mkstages/create_forcestage3.sh | 6 +++++- |
11 |
1 file changed, 5 insertions(+), 1 deletion(-) |
12 |
|
13 |
diff --git a/scripts/mkstages/create_forcestage3.sh b/scripts/mkstages/create_forcestage3.sh |
14 |
index 26210d9..a70a174 100755 |
15 |
--- a/scripts/mkstages/create_forcestage3.sh |
16 |
+++ b/scripts/mkstages/create_forcestage3.sh |
17 |
@@ -40,7 +40,11 @@ prepare(){ |
18 |
if [[ "${OLDSTAGE3}" =~ ^http ]]; then |
19 |
if [[ ! -e /tmp/$(basename ${OLDSTAGE3}) ]]; then |
20 |
cd /tmp |
21 |
- fetch "${OLDSTAGE3}" |
22 |
+ if type -P wget &> /dev/null ; then |
23 |
+ wget -q "${OLDSTAGE3}" |
24 |
+ else |
25 |
+ fetch "${OLDSTAGE3}" |
26 |
+ fi |
27 |
fi |
28 |
else |
29 |
cp -a "${OLDSTAGE3}" /tmp |