From: Johannes Kastl Date: Wed, 17 Dec 2014 20:08:21 +0000 (+0100) Subject: lxc-opensuse: Disable building openSUSE containers on 13.2/Tumbleweed only if wrong... X-Git-Tag: lxc-1.0.8~222 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96c3d526640d1e1f15052d0c87796ba604d58b50;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 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