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

View file

@ -133,7 +133,7 @@ function archversion_check() {
package_version=$(yay -Sia "$pkg" | grep -e '^Version' | sed 's|^Version *: *||;s|-[0-9]$||') package_version=$(yay -Sia "$pkg" | grep -e '^Version' | sed 's|^Version *: *||;s|-[0-9]$||')
# Compare versions and handle accordingly # 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 # Add a blank line after each package when running debug for easier parsing
[[ "$archversion_debug" = '1' ]] && printf '\n' [[ "$archversion_debug" = '1' ]] && printf '\n'