xbps-src: update-check: handle underscores in upstream version string
This commit is contained in:
parent
1f28ef0e4d
commit
e2b63458be
4 changed files with 1 additions and 5 deletions
|
@ -75,6 +75,7 @@ update_check() {
|
||||||
curl -A "xbps-src-update-check/$XBPS_SRC_VERSION" --max-time 10 -Lsk "$url" |
|
curl -A "xbps-src-update-check/$XBPS_SRC_VERSION" --max-time 10 -Lsk "$url" |
|
||||||
grep -Po -i "$rx"
|
grep -Po -i "$rx"
|
||||||
done |
|
done |
|
||||||
|
tr _ . |
|
||||||
sort -Vu |
|
sort -Vu |
|
||||||
{
|
{
|
||||||
grep . || echo "NO VERSION found for $original_pkgname" 1>&2
|
grep . || echo "NO VERSION found for $original_pkgname" 1>&2
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
site="https://api.github.com/repos/steveicarus/$pkgname/tags"
|
site="https://api.github.com/repos/steveicarus/$pkgname/tags"
|
||||||
pattern='"name":\s*"v\K[\d_]+(?=")'
|
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_]+"
|
pattern="VERSION_\K[\d_]+"
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
version="${version/./_}"
|
|
||||||
site='http://www.portaudio.com/download.html'
|
site='http://www.portaudio.com/download.html'
|
||||||
pattern='archives/pa_stable_v\K[0-9_]+(?=\.tgz)'
|
pattern='archives/pa_stable_v\K[0-9_]+(?=\.tgz)'
|
||||||
|
|
Loading…
Add table
Reference in a new issue