From 261e98b6bdd9e3944c4a72942a61a686b51d1907 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Mon, 3 Nov 2014 08:47:13 +0400 Subject: [PATCH] =?UTF-8?q?le=20syst=C3=A8me=20n'a=20peut-=C3=AAtre=20pas?= =?UTF-8?q?=20de=20version=20r=C3=A9cente=20de=20ulib?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ulib/.ulibver | 2 +- lib/ulib/auto | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ulib/.ulibver b/lib/ulib/.ulibver index 24ce4aa..d68eee4 100644 --- a/lib/ulib/.ulibver +++ b/lib/ulib/.ulibver @@ -1 +1 @@ -007001001 +007001002 diff --git a/lib/ulib/auto b/lib/ulib/auto index a48cf0f..4f9c2fa 100644 --- a/lib/ulib/auto +++ b/lib/ulib/auto @@ -44,6 +44,8 @@ function __ulibver_check() { local sversion=000000000 smajor sminor spatch spversion [ -f "$ULIBDIR/.ulibver" ] && __ulibver_parse "$(<"$ULIBDIR/.ulibver")" [ -f "/etc/.ulibver" ] && __ulibver_parse "$(<"/etc/.ulibver")" s + # si le système n'a pas .ulibver, le test échoue + [ -n "$smajor" ] || return 1 # la version majeure doit correspondre [ "$smajor" -eq "$major" ] || return 1 # puis tester si version mineure plus récente