From: Johannes Kastl Date: Wed, 17 Dec 2014 20:06:34 +0000 (+0100) Subject: lxc-opensuse: Disable building openSUSE containers on 13.2/Tumbleweed only if wrong... X-Git-Tag: lxc-1.1.0.rc1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3eccbbf805cb68522955519b0709853f6bc7bff;p=thirdparty%2Flxc.git lxc-opensuse: Disable building openSUSE containers on 13.2/Tumbleweed only if wrong version of build package is installed Signed-off-by: Johannes Kastl Acked-by: Stéphane Graber --- diff --git a/templates/lxc-opensuse.in b/templates/lxc-opensuse.in index 4c09d24bc..f72725026 100644 --- a/templates/lxc-opensuse.in +++ b/templates/lxc-opensuse.in @@ -427,8 +427,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 [ -z "$DISTRO" ]; then