xbps-src: update-check: handle underscores in upstream version string
This commit is contained in:
parent
1f28ef0e4d
commit
e2b63458be
|
@ -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
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
site="https://api.github.com/repos/steveicarus/$pkgname/tags"
|
||||
pattern='"name":\s*"v\K[\d_]+(?=")'
|
||||
version=${version//./_}
|
||||
|
|
|
@ -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_]+"
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
version="${version/./_}"
|
||||
site='http://www.portaudio.com/download.html'
|
||||
pattern='archives/pa_stable_v\K[0-9_]+(?=\.tgz)'
|
||||
|
|
Loading…
Reference in New Issue