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:
parent
61b6d20bb2
commit
c6bfe69120
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue