summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bootstrap.12
-rwxr-xr-xdownload5
2 files changed, 5 insertions, 2 deletions
diff --git a/bootstrap.1 b/bootstrap.1
index 156f5625557a..304f41cb17cd 100644
--- a/bootstrap.1
+++ b/bootstrap.1
@@ -80,5 +80,5 @@ chmod +x "$SRC_ROOT/solenv/bin/gccinstlib.pl"
# fetch or update external tarballs
if [ "$DO_FETCH_TARBALLS" = "yes" ]; then
- $SRC_ROOT/fetch_tarballs.sh $SRC_ROOT/ooo.lst
+ $SRC_ROOT/download $SRC_ROOT/ooo.lst
fi
diff --git a/download b/download
index 5482ac9f9427..9ab936f4c49b 100755
--- a/download
+++ b/download
@@ -26,7 +26,10 @@
#
#*************************************************************************
-if [ ! -d clone ] ; then
+# we want to clone if we are in the bootstrap git repo and clone does not exist yet
+# we need to test for a .git in order not to clone after rsync if we are called in
+# the inner autogen of the buid-repo based build
+if [ ! -d clone -a -d .git ] ; then
./g clone
fi
if [ -z "$TARFILE_LOCATION" ]; then