wok diff tree/receipt @ rev 24384

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 06 16:04:43 2022 +0000 (2022-02-06)
parents 095836df71b7
children bc2b9d9bed6f
line diff
     1.1 --- a/tree/receipt	Thu Jan 27 12:16:00 2022 +0000
     1.2 +++ b/tree/receipt	Sun Feb 06 16:04:43 2022 +0000
     1.3 @@ -14,8 +14,8 @@
     1.4  # What is the latest version available today?
     1.5  current_version()
     1.6  {
     1.7 -	wget -O - $WEB_SITE/tags 2>/dev/null | \
     1.8 -	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
     1.9 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    1.10 +	sed '/tree-/!d;/tgz/!d;s|.*tree-||;s|.tgz.*||' | sort -Vr | sed q
    1.11  }
    1.12  
    1.13  # Rules to configure and make the package.