Fix update macros for gnutls and physfs

Fix "downdates" reported by Niels Kristian Bech Jensen for packages
gnutls and physfs by sorting version numbers properly and allowing
(in the case of gnutls) version number parts with more than one digit.
This commit is contained in:
Ulrich Klauer 2013-03-26 08:58:29 +01:00
parent 79b59c8430
commit cf72f3b187
2 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,8 @@ $(PKG)_DEPS := gcc gettext nettle pcre zlib
define $(PKG)_UPDATE
$(WGET) -q -O- ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1/ | \
$(SED) -n 's,.*gnutls-\([1-9]\.[0-9].[0-9]\)\..*,\1,p' | \
$(SED) -n 's,.*gnutls-\([1-9]\+\.[0-9]\+.[0-9]\+\)\..*,\1,p' | \
$(SORT) -V | \
tail -1
endef

View File

@ -12,7 +12,8 @@ $(PKG)_DEPS := gcc zlib
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://icculus.org/physfs/downloads/?M=D' | \
$(SED) -n 's,.*<a href="physfs-\([0-9][^"]*\)\.tar.*,\1,pI' | \
head -1
$(SORT) -V | \
tail -1
endef
define $(PKG)_BUILD