From da48508a880dca2faed2b2c1a23f2de3535b3223 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Tue, 29 Aug 2017 14:56:51 +0000 Subject: .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. --- scripts/bst-build-or-show | 2 +- 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 -- cgit v1.2.1