Unverified Commit 8fed26c2 authored by David McFarland's avatar David McFarland Committed by GitHub
Browse files

nuget-to-json: fix missing tool packages (#388841)

parents 89cca4cf 42a751ad
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -62,7 +62,8 @@ done
            fi

            # packages in the nix store should have an empty metadata file
            used_source="$(jq -r 'if has("source") then .source else "" end' "$version"/.nupkg.metadata)"
            # packages installed with 'dotnet tool' may be missing 'source'
            used_source="$(jq -r 'if has("source") then .source elif has("contentHash") then "__unknown" else "" end' "$version"/.nupkg.metadata)"
            found=false

            if [[ -z "$used_source" || -d "$used_source" ]]; then