rrs_maintainer_history: check out layer branch before looking for maintainers.inc

The revision that happens to be checked out at the moment could be
anything and might not actually have a maintainers.inc, so check out the
proper branch before looking for it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2019-01-23 10:31:49 +13:00
parent 0d19f49dd7
commit c74e4bd4d9

View File

@ -69,6 +69,8 @@ def get_commit_info(info, logger):
def maintainers_inc_history(options, logger, maintplan, layerbranch, repodir, layerdir):
utils.checkout_layer_branch(layerbranch, repodir, logger=logger)
maintainers_full_path = os.path.join(layerdir, MAINTAINERS_INCLUDE_PATH)
if not os.path.exists(maintainers_full_path):
logger.warning('Maintainer style is maintainers.inc for plan %s but no maintainers.inc exists in for %s' % (maintplan, layerbranch))