update_check.sh: regard dashes as dots for version comparison.
This commit is contained in:
parent
a8c41fd0e2
commit
85ea2492c3
1 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,8 @@ update_check() {
|
|||
esac
|
||||
done
|
||||
if $consider; then
|
||||
xbps-uhelper cmpver "$pkgname-${version}_1" "$pkgname-${found_version}_1"
|
||||
xbps-uhelper cmpver "$pkgname-${version}_1" \
|
||||
"$pkgname-$(printf %s "$found_version" | tr - .)_1"
|
||||
if [ $? = 255 ]; then
|
||||
echo "${pkgname}-${version} -> ${pkgname}-${found_version}"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue