rrs_upgrade_history: ignore files outside of the layer

We were parsing recipes that were in the repository but not inside the
actual layer we're dealing with (e.g. we have meta-selftest within the
OE-Core repository, containing a number of recipes that are only
intended for testing purposes and should not be looked at by this
script).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2018-03-27 16:16:29 +13:00
parent fb332736c6
commit 8b98c0ecdd

View File

@ -130,6 +130,9 @@ def _get_recipes_filenames(ct, repodir, layerdir, logger):
# Skip deleted files in commit
if not os.path.exists(fullpath):
continue
if not fullpath.startswith(layerdir_start):
# Ignore files in repo that are outside of the layer
continue
(typename, _, filename) = recipeparse.detect_file_type(fullpath,
layerdir_start)
if typename == 'recipe':