build_library: Filter out null paths in torcx manifests

This avoids odd "null" lines appearing in torcx image names.
This commit is contained in:
David Michael 2017-09-15 12:09:45 -07:00
parent 7995d7dde9
commit fea4b4624e

View File

@ -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