From cf72f3b1870f573edf5ab88f1f70b83882e677ac Mon Sep 17 00:00:00 2001 From: Ulrich Klauer Date: Tue, 26 Mar 2013 08:58:29 +0100 Subject: [PATCH] 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. --- src/gnutls.mk | 3 ++- src/physfs.mk | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gnutls.mk b/src/gnutls.mk index 599668b6..9f00a7a8 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 ac032c25..26544734 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,.*