summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>2010-01-01 18:46:20 +0100
committerDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>2010-01-01 18:46:20 +0100
commitbba4c6f4db164858b6d68e20affc60d23870ebd6 (patch)
tree7b49c92e11666426e199c64470ce5b5c13a9bb74
parentFix check for .la files in ruby extensions. (diff)
downloadflameeyes-tinderbox-bba4c6f4db164858b6d68e20affc60d23870ebd6.tar.gz
flameeyes-tinderbox-bba4c6f4db164858b6d68e20affc60d23870ebd6.tar.bz2
flameeyes-tinderbox-bba4c6f4db164858b6d68e20affc60d23870ebd6.zip
Wrap around the bti call, and ignore its failure status.
Since we don't care about bti failing (it actually results in a failure even when it doesn't fail to dent, right now), don't stop the whole script for that.
-rwxr-xr-xtinderbox-restart.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/tinderbox-restart.sh b/tinderbox-restart.sh
index fda5a62..ac81023 100755
--- a/tinderbox-restart.sh
+++ b/tinderbox-restart.sh
@@ -4,9 +4,15 @@ reset_emergelog() {
rm -f /var/log/emerge.log
}
+dent() {
+ # Ignore failure that might be caused by network being
+ # unavailable, the service being unavailable or things like those.
+ echo "$@" | bti || true
+}
+
set -e
-echo "#syncing anew upon request" | bti
+dent "#syncing anew upon request"
emerge --sync
@@ -28,7 +34,7 @@ reset_emergelog
if emerge -u1 ghc haskell-updater &&
fgrep -q '>>> emerge' /var/log/emerge.log; then
- echo "running #haskell-updater" | bti
+ dent "running #haskell-updater"
/usr/sbin/haskell-updater --upgrade
fi
@@ -37,7 +43,7 @@ reset_emergelog
if emerge -u1 dev-lang/ocaml &&
fgrep -q '>>> emerge' /var/log/emerge.log; then
- echo "running #ocaml-rebuild" | bti
+ dent "running #ocaml-rebuild"
/usr/sbin/ocaml-rebuild.sh -f
fi