]> code.ossystems Code Review - openembedded-core.git/commit
distrodata.bbclass: make upstream version check more useful for git upstreams
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>
Tue, 14 Nov 2017 14:57:28 +0000 (16:57 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Nov 2017 23:41:36 +0000 (23:41 +0000)
commit591d57877d3d3e659d78c0ed33f4c515e3f6f8fb
tree669b3eb82ece3f4620b190a93215f32ae2136b46
parent090eb9efdb2204673b1d569582813ea8860c8570
distrodata.bbclass: make upstream version check more useful for git upstreams

Specifically:

1) remove +git${SRCPV} stuff from comparison and output; it's just
unnecessary clutter;

2) write the commit id of the latest version tag into the output;
this saves quite a bit of trouble of manually checking what that
commit id is when doing version updates;

3) when UPSTREAM_CHECK_COMMITS is set, ignore the tags altogether;
instead check if the latest commit is different to the one we use,
and if so, report that the recipe can be updated to said commit
(which is also written into the output, as in 2). Multiple
recipes are failing the upstream check because they never
issue tags, now we can fix them.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/distrodata.bbclass
meta/lib/oe/recipeutils.py