From 15cbeaf0e297c87bfb9361f7fdc6deed51771569 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Mon, 2 Jul 2012 15:20:50 +0000 Subject: baserock-bootstrap: remove update-gits loop This should no longer be needed, since gitano on our own server is more stable and faster than gitorious.org was for us. Ideally we would have update-gits have a set of repositories to update and if one fails, increment the fail count and move on to the next if it hasn't exceeded the retries limit. --- baserock-bootstrap | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) (limited to 'baserock-bootstrap') diff --git a/baserock-bootstrap b/baserock-bootstrap index ccaf643a..0d1aaa85 100755 --- a/baserock-bootstrap +++ b/baserock-bootstrap @@ -67,16 +67,13 @@ pass1_get_sources_with_morph() { cd $LFS/baserock/gits/morph $HOST_MKDIR -p $LFS/baserock/cache - while ! python ./morph --verbose update-gits \ + python ./morph --verbose update-gits \ baserock:morphs master bootstrap-pass1.morph \ --cachedir=$LFS/baserock/cache \ --log=$LFS/baserock/morph.log \ --dump-memory-profile=none \ --keep-path \ --bundle-server="$GIT_BUNDLES" - do - echo eeekk try again - done } pass1_build_with_morph() @@ -178,17 +175,14 @@ set -x cd /baserock/gits/morph mkdir -p /baserock/cache export PATH="/usr/bin:/bin:$tools/bin:$tools/sbin" -while ! python ./morph --verbose update-gits \ +python ./morph --verbose update-gits \ baserock:morphs master bootstrap-pass2.morph \ - --bootstrap \ - --cachedir=/baserock/cache \ - --log=/baserock/morph.log \ - --dump-memory-profile=none \ - --keep-path \ - --bundle-server="$GIT_BUNDLES" -do - echo eeekk try again -done + --bootstrap \ + --cachedir=/baserock/cache \ + --log=/baserock/morph.log \ + --dump-memory-profile=none \ + --keep-path \ + --bundle-server="$GIT_BUNDLES" EOF $HOST_CHMOD +x "$LFS/baserock/build.sh" local do_chroot="$BASEDIR/do-chroot.bash" @@ -334,16 +328,13 @@ set -e set -x cd /baserock/gits/morph -while ! python ./morph --verbose update-gits \ +python ./morph --verbose update-gits \ baserock:morphs master $PASS3_STRATUM \ - --cachedir=/baserock/cache \ - --log=/baserock/morph.log \ - --dump-memory-profile=none \ - --keep-path \ - --bundle-server="$GIT_BUNDLES" -do - echo eeekk try again -done + --cachedir=/baserock/cache \ + --log=/baserock/morph.log \ + --dump-memory-profile=none \ + --keep-path \ + --bundle-server="$GIT_BUNDLES" EOF $HOST_CHMOD +x "$LFS/baserock/build.sh" local do_chroot="$BASEDIR/do-chroot.bash" -- cgit v1.2.1