update-check: find versions with more components
This commit is contained in:
parent
f64ffec32e
commit
c3cfeb56e8
@ -78,7 +78,9 @@ update_check() {
|
|||||||
fi
|
fi
|
||||||
skipdirs=
|
skipdirs=
|
||||||
curl -A "xbps-src-update-check/$XBPS_SRC_VERSION" --max-time 10 -Lsk "$urlpfx" |
|
curl -A "xbps-src-update-check/$XBPS_SRC_VERSION" --max-time 10 -Lsk "$urlpfx" |
|
||||||
grep -Po -i "$rx" | sort -Vru |
|
grep -Po -i "$rx" |
|
||||||
|
# sort -V places 1.1/ before 1/, but 1A/ before 1.1A/
|
||||||
|
sed -e 's:$:A:' -e 's:/A$:A/:' | sort -Vru | sed -e 's:A/$:/A:' -e 's:A$::' |
|
||||||
while IFS= read -r newver; do
|
while IFS= read -r newver; do
|
||||||
newurl="${urlpfx}${newver}${urlsfx}"
|
newurl="${urlpfx}${newver}${urlsfx}"
|
||||||
if [ "$newurl" = "$url" ]; then
|
if [ "$newurl" = "$url" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user