]> code.ossystems Code Review - openembedded-core.git/commit
scripts/bitbake: unbreak the git version comparison
authorChristopher Larson <chris_larson@mentor.com>
Mon, 30 Jul 2012 16:08:46 +0000 (09:08 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 31 Jul 2012 10:38:18 +0000 (11:38 +0100)
commitf28f6267271edbbef16caec323e9ba76e2216723
treea7d357807fc83a8c00905cc5a4007acd01d7bc50
parentb3ef5a986e3bc1a29ba2b4a25d063a0267e2f72f
scripts/bitbake: unbreak the git version comparison

With the current code, we're calling awk to do a floating point comparison
between '1.7.0.4' and '1.7.5' (on an ubuntu 10.04 LTS machine). These clearly
aren't proper floating point numbers, and the comparison is incorrect. It's
returning true for 1.7.0.4 >= 1.7.5.

Instead of using a floating point comparison for this, call out to python and
let it do it.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/bitbake