diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-08-29 14:56:51 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-08-29 14:56:51 +0000 |
commit | da48508a880dca2faed2b2c1a23f2de3535b3223 (patch) | |
tree | 863d76a9a9cf932dced000157db252c555eb48ab | |
parent | 3458d7369246f83f26f802bf9d9827c67cf40f69 (diff) | |
download | definitions-da48508a880dca2faed2b2c1a23f2de3535b3223.tar.gz |
.gitlab-ci.yml: Fix up previous commit
The "downloadable" state is the one we need to special-case. The
"cached" state means that the artifact is cached *locally*, and
BuildStream will already avoid rebuilding it in this case.
-rwxr-xr-x | scripts/bst-build-or-show | 2 | ||||
-rwxr-xr-x | scripts/bst-cross-build-or-show | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/bst-build-or-show b/scripts/bst-build-or-show index 7a8a8ecc..eac56a9f 100755 --- a/scripts/bst-build-or-show +++ b/scripts/bst-build-or-show @@ -9,7 +9,7 @@ set -eu bst_target="$1" -if [ "$(bst show $bst_target --deps none --format '%{state}')" == 'cached' ]; then +if [ "$(bst show $bst_target --deps none --format '%{state}')" == 'downloadable' ]; then bst --colors show $bst_target else bst --colors build $bst_target diff --git a/scripts/bst-cross-build-or-show b/scripts/bst-cross-build-or-show index 3be2b482..3dfed9e5 100755 --- a/scripts/bst-cross-build-or-show +++ b/scripts/bst-cross-build-or-show @@ -10,7 +10,7 @@ set -eu bst_target_arch="$1" bst_target="$2" -if [ "$(bst --target-arch=$bst_target_arch show $bst_target --deps none --format '%{state}')" == 'cached' ]; then +if [ "$(bst --target-arch=$bst_target_arch show $bst_target --deps none --format '%{state}')" == 'downloadable' ]; then bst --colors --target-arch="$bst_target_arch" show $bst_target else bst --colors --target-arch="$bst_target_arch" build $bst_target |