]> code.ossystems Code Review - openembedded-core.git/commit
devtool: upgrade: fix version argument checking
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Sun, 21 Feb 2016 23:04:53 +0000 (12:04 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 28 Feb 2016 11:32:35 +0000 (11:32 +0000)
commit1d0f821371d1cb93e30fad86f0c20e38cb93b54b
tree3dcc23a96812950a41d09c96b57fa69688915a31
parent1e2bc7d861555a04350a87f19047efdc717046be
devtool: upgrade: fix version argument checking

For recipes that specify SRCREV, the code here wasn't quite doing the
right thing. If the recipe has a SRCREV then that needs changing on
upgrade, so ensure that the user specifies it. If it doesn't, then it'll
be "INVALID" not None since the former is the actual default, so handle
that properly as well. Additionally an unset variable was being
erroneously passed when raising the error about the version being the
same leading to a traceback, so fix that as well.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/devtool/upgrade.py