]> code.ossystems Code Review - openembedded-core.git/commit
linux-yocto: check for bad SRCREV before branch checks
authorBruce Ashfield <bruce.ashfield@windriver.com>
Tue, 4 Sep 2012 12:40:34 +0000 (08:40 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 4 Sep 2012 13:45:16 +0000 (14:45 +0100)
commit7e4518bf88af53b09536a3bafcd4c392a094023f
treed8a81464b4f892d42eb377bb8798e3c45343350b
parentb2b2512cbc4196fa0f814be3677517dab30e5b52
linux-yocto: check for bad SRCREV before branch checks

do_validate_branches ensures that the desired SRCREV is at
the tip of every branch that contains the revision. To do this,
it looks for containing branches and processes them.

This processing was mistakenly placed before the check for an
invalid SRCREV, hence a git error message is seen in the log
if a bad SRCREV is used, rather than a clear message.

reordering the checks, and fixing a check for master, ensures
that clear messages are generated in all cases.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-yocto.bbclass