diff options
author | Christopher Larson <chris_larson@mentor.com> | 2018-02-27 17:06:17 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-04-05 15:11:15 +0100 |
commit | 4243555ab91ab763a098259011dfa72156bfe0b3 (patch) | |
tree | 07fa7a39592aa6a1df3883b6d87de928d887d928 /meta/recipes-support | |
parent | 863916169fbe2686015b4f2279f49f08f41e9a47 (diff) | |
download | openembedded-core-4243555ab91ab763a098259011dfa72156bfe0b3.tar.gz |
buildhistory: fix latest_srcrev in the common case
buildhistory was writing srcrevs.values() as SRCREV when only one
srcrev/branch exists. This returns a view of the dictionary values in python
3, and used to return a list in python 2, neither of which is an appropriate
value for SRCREV. It was resulting in latest_srcrev files like this:
# SRCREV = "346584bf6e38232be8773c24fd7dedcbd7b3d9ed"
SRCREV = "dict_values(['346584bf6e38232be8773c24fd7dedcbd7b3d9ed'])"
Which in turn would result in invalid output in buildhistory-collect-srcrevs.
Fix by calling `next(iter())` on the `.values()`
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit ef826a395612400924bbe49859d256b237ff59e1)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta/recipes-support')
0 files changed, 0 insertions, 0 deletions