Account for package versions that start with an epoch

This commit is contained in:
Kevin MacMartin 2022-05-05 23:25:15 -04:00
parent 95ce17436c
commit 978fe7eb51
1 changed files with 1 additions and 1 deletions

View File

@ -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'