xbps-src: update-check: handle underscores in upstream version string

This commit is contained in:
Piotr Wójcik 2018-04-13 16:36:37 +02:00 committed by Enno Boland
parent 1f28ef0e4d
commit e2b63458be
4 changed files with 1 additions and 5 deletions

View File

@ -75,6 +75,7 @@ update_check() {
curl -A "xbps-src-update-check/$XBPS_SRC_VERSION" --max-time 10 -Lsk "$url" |
grep -Po -i "$rx"
done |
tr _ . |
sort -Vu |
{
grep . || echo "NO VERSION found for $original_pkgname" 1>&2

View File

@ -1,3 +1,2 @@
site="https://api.github.com/repos/steveicarus/$pkgname/tags"
pattern='"name":\s*"v\K[\d_]+(?=")'
version=${version//./_}

View File

@ -1,4 +1 @@
# This pattern is incomplete, it finds out the versions like '0_3_1' but
# comparison with 'xbps-uhelper cmpver' results in it being always treated
# as a lower version
pattern="VERSION_\K[\d_]+"

View File

@ -1,3 +1,2 @@
version="${version/./_}"
site='http://www.portaudio.com/download.html'
pattern='archives/pa_stable_v\K[0-9_]+(?=\.tgz)'