wok diff python-psutil/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents 1df6fa555414
children 88b11e08f73a
line diff
     1.1 --- a/python-psutil/receipt	Thu Jan 13 18:29:05 2022 +0000
     1.2 +++ b/python-psutil/receipt	Sat May 21 21:38:29 2022 +0000
     1.3 @@ -6,9 +6,9 @@
     1.4  SHORT_DESC="A process and system utilities module for Python."
     1.5  MAINTAINER="paul@slitaz.org"
     1.6  LICENSE="BSD"
     1.7 +SOURCE="psutil"
     1.8  WEB_SITE="https://pypi.org/project/$SOURCE/"
     1.9  
    1.10 -SOURCE="psutil"
    1.11  TARBALL="$SOURCE-$VERSION.tar.gz"
    1.12  WGET_URL="https://files.pythonhosted.org/packages/source/p/$SOURCE/$TARBALL"
    1.13  
    1.14 @@ -17,9 +17,10 @@
    1.15  
    1.16  HOST_ARCH="i486 arm"
    1.17  
    1.18 +# What is the latest version available today?
    1.19  current_version()
    1.20  {
    1.21 -	wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||'
    1.22 +	wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||;q"
    1.23  }
    1.24  
    1.25  # Rules to configure and make the package.