The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/1855

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
liblxc should inform users that they are using a devel version. This will have
liblxc print

    MAJOR.MINOR.PATCH-devel

if LXC_DEVEL is true and

    MAJOR.MINOR.PATCH

otherwise.

Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
From 632297b3b65eecf626a87ff0d5b9cfc8f3c181f1 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brau...@ubuntu.com>
Date: Thu, 12 Oct 2017 10:06:46 +0200
Subject: [PATCH] arguments: print "-devel" when LXC_DEVEL is true

liblxc should inform users that they are using a devel version. This will have
liblxc print

    MAJOR.MINOR.PATCH-devel

if LXC_DEVEL is true and

    MAJOR.MINOR.PATCH

otherwise.

Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
---
 src/lxc/arguments.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/arguments.c b/src/lxc/arguments.c
index c6267387f..f16b19562 100644
--- a/src/lxc/arguments.c
+++ b/src/lxc/arguments.c
@@ -131,7 +131,7 @@ static void print_usage(const struct option longopts[],
 
 static void print_version()
 {
-       printf("%s\n", LXC_VERSION);
+       printf("%s%s\n", LXC_VERSION, LXC_DEVEL ? "-devel" : "");
        exit(0);
 }
 
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to