update_check.sh: regard dashes as dots for version comparison.

This commit is contained in:
Christian Neukirchen 2014-11-01 20:13:34 +01:00
parent a8c41fd0e2
commit 85ea2492c3
1 changed files with 2 additions and 1 deletions

View File

@ -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