[Bug 1273689] Re: lxc-version is missing since 1.0.0beta3 - now lacking a programatic way to query lxc version

2014-01-28 Thread Stéphane Graber
Marking bug as invalid since there's a replacement command and our existing documentation is correct with regard to the version currently available in that release. ** Changed in: lxc (Ubuntu) Status: New = Invalid -- You received this bug notification because you are a member of Ubuntu

[Bug 1273689] Re: lxc-version is missing since 1.0.0beta3 - now lacking a programatic way to query lxc version

2014-01-28 Thread JuanJo Ciarlante
FYI lxc-start --version fails on precise (and saucy), which then makes this check release dependent (and/or over existence of lxc-version binary). -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 1273689] Re: lxc-version is missing since 1.0.0beta3 - now lacking a programatic way to query lxc version

2014-01-28 Thread JuanJo Ciarlante
(sorry, early comment posting) - ie querying the version now cross releases would involve something alike: version=$((lxc-version 2/dev/null || lxc-start --version) | sed 's/.* //') That 'sed' is to cope with lxc-version textual formatting, while lxc- start --version shows it straight. -- You

[Bug 1273689] Re: lxc-version is missing since 1.0.0beta3 - now lacking a programatic way to query lxc version

2014-01-28 Thread Stéphane Graber
So yes, if you want the upstream version number in a generic way which works with older and newer lxc, you'll need something like what you listed above. However, note that in most distributions, the upstream version number is mostly irrelevant due to the amount of cherry-picking that's done, The