Merge pull request #749 from dm0-/torcx

build_library: Filter out null paths in torcx manifests
This commit is contained in:
David Michael 2017-09-15 12:18:39 -07:00 committed by GitHub
commit 9c8099a0d3

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