summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rwxr-xr-xutil/crossgcc/buildgcc3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 3754837005..c668ad2a36 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -286,7 +286,7 @@ for PACKAGE in GMP MPFR MPC LIBELF GCC BINUTILS $PYTHON_PACKAGE \
archive="`eval echo '$'$archive`"
dir=$PACKAGE"_DIR"
dir="`eval echo '$'${dir}`"
- test -d ${dir} || (
+ test -d ${dir} && test -f ${dir}/.unpack_sucess || (
printf " * `basename $archive`\n"
FLAGS=zxf
suffix=`echo $archive | sed 's,.*\.,,'`
@@ -300,6 +300,7 @@ for PACKAGE in GMP MPFR MPC LIBELF GCC BINUTILS $PYTHON_PACKAGE \
$PATCH -s -N -p0 < `echo $patch` || \
printf "\n${RED}Failed $patch.${NC}\n"
done
+ touch ${dir}/.unpack_success
)
done
printf "Unpacked and patched ... "