Merge pull request #751 from dm0-/build-1535

build_library: Filter out null paths in torcx manifests
This commit is contained in:
David Michael 2017-09-15 12:17:02 -07:00 committed by GitHub
commit 3343056b9b

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