From 978fe7eb5181030d9cd28754649eb68fbe2afb7e Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 5 May 2022 23:25:15 -0400 Subject: [PATCH] Account for package versions that start with an epoch --- checkversion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkversion b/checkversion index 27a6870..20a17c6 100755 --- a/checkversion +++ b/checkversion @@ -133,7 +133,7 @@ function archversion_check() { package_version=$(yay -Sia "$pkg" | grep -e '^Version' | sed 's|^Version *: *||;s|-[0-9]$||') # Compare versions and handle accordingly - vercmp_check "$pkg" "$upstream_version" "$package_version" + vercmp_check "$pkg" "$upstream_version" "${package_version/[0-9]:}" # Add a blank line after each package when running debug for easier parsing [[ "$archversion_debug" = '1' ]] && printf '\n'