[lxc-devel] [lxc/master] arguments: print "-devel" when LXC_DEVEL is true
brauner on Github
lxc-bot at linuxcontainers.org
Thu Oct 12 08:09:33 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 558 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171012/24be7808/attachment.bin>
-------------- next part --------------
From 632297b3b65eecf626a87ff0d5b9cfc8f3c181f1 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at 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.brauner at 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);
}
More information about the lxc-devel
mailing list