wok diff a2ps/receipt @ rev 24433
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 18:42:31 2022 +0000 (2022-02-12) |
parents | 71360a13cd94 |
children | bfabe25c21ff |
line diff
1.1 --- a/a2ps/receipt Fri Jan 28 18:19:21 2022 +0000 1.2 +++ b/a2ps/receipt Sat Feb 12 18:42:31 2022 +0000 1.3 @@ -17,7 +17,7 @@ 1.4 current_version() 1.5 { 1.6 wget -O - ${WGET_URL%/*} 2>/dev/null | \ 1.7 - sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 1.8 + sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 1.9 } 1.10 1.11 # Rules to configure and make the package.