1
0
Fork 0
mirror of https://github.com/Luzifer/archrepo.git synced 2024-11-09 01:50:01 +00:00

Use vercmp to check for updates

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-05-31 15:20:55 +02:00
parent 61b6d20bb2
commit c6bfe69120
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -54,7 +54,7 @@ for package in "${!local_versions[@]}"; do
continue
}
[[ ${local_version} == ${aur_version} ]] || {
[ $(vercmp "${local_version}" "${aur_version}") -eq -1 ] && {
warn "Package ${package} needs update (${local_version} => ${aur_version})"
updates+=("${package}")
continue