From 1742e8ce18e6a242996c2679b085b4d41a9d3c26 Mon Sep 17 00:00:00 2001 From: David Michael Date: Fri, 15 Sep 2017 12:09:45 -0700 Subject: [PATCH] build_library: Filter out null paths in torcx manifests This avoids odd "null" lines appearing in torcx image names. --- build_library/torcx_manifest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_library/torcx_manifest.sh b/build_library/torcx_manifest.sh index f899ae5689..c1b7439c9c 100644 --- a/build_library/torcx_manifest.sh +++ b/build_library/torcx_manifest.sh @@ -96,7 +96,7 @@ function torcx_manifest::local_store_path() { local file="${1}" local name="${2}" local version="${3}" - jq -r ".value.packages[] | select(.name == \"${name}\") | .versions[] | select(.version == \"${version}\") | .locations[].path" < "${file}" + jq -r ".value.packages[] | select(.name == \"${name}\") | .versions[] | select(.version == \"${version}\") | .locations[] | select(.path).path" < "${file}" } # get_digest returns the cas digest for a given package version