mirror of
https://github.com/Luzifer/archrepo.git
synced 2024-11-13 20:02:43 +00:00
Use vercmp to check for updates
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
61b6d20bb2
commit
c6bfe69120
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ for package in "${!local_versions[@]}"; do
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
[[ ${local_version} == ${aur_version} ]] || {
|
[ $(vercmp "${local_version}" "${aur_version}") -eq -1 ] && {
|
||||||
warn "Package ${package} needs update (${local_version} => ${aur_version})"
|
warn "Package ${package} needs update (${local_version} => ${aur_version})"
|
||||||
updates+=("${package}")
|
updates+=("${package}")
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue