wok-6.x diff python-ipy/receipt @ rev 24565
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 25 22:15:31 2022 +0000 (2022-02-25) |
parents | 095836df71b7 |
children | 4af3f9be894a |
line diff
1.1 --- a/python-ipy/receipt Thu Jan 27 12:16:00 2022 +0000 1.2 +++ b/python-ipy/receipt Fri Feb 25 22:15:31 2022 +0000 1.3 @@ -18,7 +18,7 @@ 1.4 # What is the latest version available today? 1.5 current_version() 1.6 { 1.7 - wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' 1.8 + wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||;q" 1.9 } 1.10 1.11 # Rules to configure and make the package.