commit:     02f6bb63dd00fdd5181b885746f8bbf9e2abc7b5
Author:     Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
AuthorDate: Sun Jul 12 07:49:47 2015 +0000
Commit:     Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
CommitDate: Sun Jul 12 07:49:47 2015 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-bsd.git/commit/?id=02f6bb63

create_forcestage3.sh: added check OLDSTAGE3 file exists.

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

diff --git a/scripts/mkstages/create_forcestage3.sh 
b/scripts/mkstages/create_forcestage3.sh
index 0d8954e..e30be09 100644
--- a/scripts/mkstages/create_forcestage3.sh
+++ b/scripts/mkstages/create_forcestage3.sh
@@ -17,7 +17,9 @@ prepare(){
        fi
 
        if [[ "${OLDSTAGE3}" =~ ^http ]]; then
-               wget -P /tmp "${OLDSTAGE3}"
+               if [[ ! -e $(basename ${OLDSTAGE3}) ]]; then
+                       wget -P /tmp "${OLDSTAGE3}"
+               fi
        else
                cp "${OLDSTAGE3}" /tmp
        fi

Reply via email to