Don't launch needless rebuilds once we have success
Signed-off-by: Scott Little <scott.little@windriver.com> Change-Id: I72827cc20ed9ac2a29848cbcccefcede24c06827
This commit is contained in:
parent
2fcd818740
commit
d7a3994d2a
|
@ -51,7 +51,7 @@ while [[ $count -lt $BUILD_PACKAGES_ITERATIONS ]] ; do
|
|||
else
|
||||
extra_args+=("--all")
|
||||
|
||||
if $PKG_REUSE ; then
|
||||
if $PKG_REUSE && [[ $count -eq 0 ]] ; then
|
||||
extra_args+=("--clean")
|
||||
extra_args+=("--reuse")
|
||||
|
||||
|
@ -68,6 +68,7 @@ while [[ $count -lt $BUILD_PACKAGES_ITERATIONS ]] ; do
|
|||
# buld'em
|
||||
if stx_docker_cmd $DRY_RUN_ARG $VEBOSE_ARG "${environment_args[*]} build-pkgs ${parallel_args[*]} ${extra_args[*]} -b $build_types" ; then
|
||||
success=1
|
||||
break
|
||||
else
|
||||
success=0
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue