[lxc-devel] [PATCH] lxc-opensuse: Disable building openSUSE containers on 13.2/Tumbleweed only if wrong version of build package is installed

Stéphane Graber stgraber at ubuntu.com
Fri Dec 19 18:39:52 UTC 2014


On Wed, Dec 17, 2014 at 09:10:01PM +0100, Johannes Kastl wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 17.12.2014 Johannes Kastl wrote:
> 
> > This patch is for stable-1.0, I'd like to get this into 1.1, too.
> > I'll send a patch soon.
> 
> Here it is.
> 
> Regards,
> Johannes
> - -- 
> `You should write a book,´ Ron told Hermione as he cut up his
> potatoes, `translating mad things girls do so boys can understand them.´
> (Harry Potter and the Order of the Phoenix)
> -----BEGIN PGP SIGNATURE-----
> Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/
> 
> iEYEARECAAYFAlSR4xkACgkQzi3gQ/xETbInjQCgkSwmQ/7X9Mi4oCrES08+UR+q
> RFMAn3IavjqjBF4CXnFrRrgoLOJRfyIJ
> =vyWW
> -----END PGP SIGNATURE-----

> From 5f391b0dd8b98365398ccd9098acd4b19d0b8ee8 Mon Sep 17 00:00:00 2001
> From: Johannes Kastl <git at ojkastl.de>
> 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
> 
> Signed-off-by: Johannes Kastl <git at ojkastl.de>

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

> ---
>  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 4c09d24..f727250 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
> -- 
> 2.2.0
> 

> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20141219/308abb70/attachment-0001.sig>


More information about the lxc-devel mailing list