]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-opensuse: Disable building openSUSE containers on 13.2/Tumbleweed only if wrong...
authorJohannes Kastl <mail@ojkastl.de>
Wed, 17 Dec 2014 20:06:34 +0000 (21:06 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 19 Dec 2014 18:45:07 +0000 (13:45 -0500)
Signed-off-by: Johannes Kastl <git@ojkastl.de>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-opensuse.in

index 4c09d24bc7854288f0a9159fe67586653b23c546..f72725026c35be3784bea6f36ec121d160e881dd 100644 (file)
@@ -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