]> git.proxmox.com Git - mirror_lxc.git/commitdiff
arguments: print "-devel" when LXC_DEVEL is true
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 12 Oct 2017 08:06:46 +0000 (10:06 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 17 Oct 2017 05:44:54 +0000 (01:44 -0400)
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@ubuntu.com>
src/lxc/arguments.c

index c6267387f8d44c29a6081b90c32ca749b7fad84c..f16b19562c44d19a210cde68fc4eda7f4ff8796a 100644 (file)
@@ -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);
 }