From 246d983fc5552446e21f0ddcb9c2f1b27c5ca4ac Mon Sep 17 00:00:00 2001 From: Richard Kuhnt Date: Sun, 10 Sep 2017 17:45:42 +0200 Subject: [PATCH] Improve JSONPath querys for openssl and nuget --- nuget.json | 2 +- openssl.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nuget.json b/nuget.json index 85d1437cd9..69dd9a6518 100644 --- a/nuget.json +++ b/nuget.json @@ -7,7 +7,7 @@ "bin": "NuGet.exe", "checkver": { "url": "https://dist.nuget.org/index.json", - "jp": "$.artifacts[0].versions[0].version" + "jp": "$..versions[?(@.displayName == 'nuget.exe - recommended latest')].version" }, "autoupdate": { "url": "https://dist.nuget.org/win-x86-commandline/v$version/NuGet.exe" diff --git a/openssl.json b/openssl.json index 00f98d7e98..3d7251d726 100644 --- a/openssl.json +++ b/openssl.json @@ -30,7 +30,7 @@ }, "hash": { "mode": "json", - "jp": "$.files.$basename.sha512", + "jp": "$.files.['$basename'].sha512", "url": "$baseurl/win32_openssl_hashes.json" } }