From 96c3d526640d1e1f15052d0c87796ba604d58b50 Mon Sep 17 00:00:00 2001 From: Johannes Kastl Date: Wed, 17 Dec 2014 21:08:21 +0100 Subject: [PATCH] lxc-opensuse: Disable building openSUSE containers on 13.2/Tumbleweed only if wrong version of build package is installed MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Kastl Acked-by: Stéphane Graber --- templates/lxc-opensuse.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/lxc-opensuse.in b/templates/lxc-opensuse.in index c5932384c..8d1d4e17d 100644 --- a/templates/lxc-opensuse.in +++ b/templates/lxc-opensuse.in @@ -395,8 +395,10 @@ if [ -z "$path" ]; then fi if grep -q Harlequin /etc/os-release || grep -q Tumbleweed /etc/os-release ; then - echo "Building containers on openSUSE 13.2 or Tumbleweed is broken at the moment. We are working on this problem." - exit 1 + if [[ "$(zypper info build|awk -F "[- ]" '/Version/ {print $2}')" -lt "20141120" ]] ; then + echo "Building openSUSE containers with your version of the build package is broken. Please install the update to version 20141120 or newer." + exit 1 + fi fi if [ "$(id -u)" != "0" ]; then -- 2.47.3