Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: src/scripts/common.sh

Issue 1545043: Retry N-1 times with the --jobs flag, then drop it (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/common.sh
diff --git a/src/scripts/common.sh b/src/scripts/common.sh
index 253954c057df2a6e960a80daa4a134727b1fd476..52bf63277954f6ef2ce3fcbc3ae75e540f186b25 100644
--- a/src/scripts/common.sh
+++ b/src/scripts/common.sh
@@ -306,12 +306,12 @@ function die {
# Retry an emerge command according to $FLAGS_retries
# The $EMERGE_JOBS flags will only be added the first time the command is run
function eretry () {
- $* $EMERGE_JOBS && return 0
local i=
for i in $(seq $FLAGS_retries); do
echo Retrying $*
- $* && return 0
+ $* $EMERGE_JOBS && return 0
done
+ $* && return 0
return 1
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698