diff options
author | Ulrich Klauer <ulrich@chirlu.de> | 2013-03-26 07:58:29 (GMT) |
---|---|---|
committer | Ulrich Klauer <ulrich@chirlu.de> | 2013-03-26 11:57:07 (GMT) |
commit | cf72f3b1870f573edf5ab88f1f70b83882e677ac (patch) | |
tree | 3ceeb5d3a4c5da76b24613d0e6766a27ff620ee7 /src | |
parent | 79b59c8430d7b4a219e6802448b0f9df837d4e9e (diff) | |
download | mxe-cf72f3b1870f573edf5ab88f1f70b83882e677ac.zip mxe-cf72f3b1870f573edf5ab88f1f70b83882e677ac.tar.gz mxe-cf72f3b1870f573edf5ab88f1f70b83882e677ac.tar.bz2 |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/gnutls.mk | 3 | ||||
-rw-r--r-- | src/physfs.mk | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gnutls.mk b/src/gnutls.mk index 599668b..9f00a7a 100644 --- a/src/gnutls.mk +++ b/src/gnutls.mk @@ -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 diff --git a/src/physfs.mk b/src/physfs.mk index ac032c2..2654473 100644 --- a/src/physfs.mk +++ b/src/physfs.mk @@ -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 |