Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Runge <dvzrv@archlinux.org>2024-06-06 16:26:35 +0200
committerLevente Polyak <anthraxx@archlinux.org>2024-06-09 14:36:47 +0200
commit144f9a871ee554b44e1d9733a56d6b4dc99803fe (patch)
treed8eb9b86045ae4d6e0d5f45a1f671b07b3b9dc0a /src
parent44328cd9a3ced0a5736e904f80f20d1749cfcf53 (diff)
fix(version): Ignore warnings when nvchecker ignores invalid versions
Since version 2.15.1 nvchecker emits a warning for version strings that it consideres invalid (e.g. in the case of PyPI). These warning messages get in the way (the first version emitted via a warning is used as version to compare against) of retrieving the latest version of an upstream and therefore we ignore them. Component: pkgctl version check Signed-off-by: David Runge <dvzrv@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/lib/version/check.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/version/check.sh b/src/lib/version/check.sh
index 0449c60..4a2b5fa 100644
--- a/src/lib/version/check.sh
+++ b/src/lib/version/check.sh
@@ -227,7 +227,7 @@ get_upstream_version() {
fi
if ! output=$(GIT_TERMINAL_PROMPT=0 nvchecker --file "${config}" --logger json "${opts[@]}" 2>&1 | \
- jq --raw-output 'select(.level != "debug")'); then
+ jq --raw-output 'select((.level != "debug") and (.event != "ignoring invalid version"))'); then
printf "failed to run nvchecker: %s" "${output}"
return 1
fi