mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
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:
parent
fb332736c6
commit
8b98c0ecdd
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue
Block a user