From cb5f3ebe528251013faba440566e27a1be5b7278 Mon Sep 17 00:00:00 2001 From: Nasser Grainawi Date: Wed, 21 Apr 2010 08:46:49 -0600 Subject: [PATCH] Retry N-1 times with the --jobs flag, then drop it Review URL: http://codereview.chromium.org/1545043 Patch from Nasser Grainawi . --- common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.sh b/common.sh index 253954c057..52bf632779 100644 --- a/common.sh +++ b/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 }