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

index c5932384c18821fcfe4952d8afc0a6f10b0278f1..8d1d4e17d2745d2106bcf0afc55961e0dc843d0a 100644 (file)
@@ -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