diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-03-27 16:16:29 +1300 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-05-04 23:57:53 +1200 |
commit | 8b98c0ecdd905395abbc452a2af5453a3faea362 (patch) | |
tree | 45073d3c4708416446c1eac6e682ba8e7d658142 | |
parent | fb332736c60167aa88de76847efdc94de25e4c44 (diff) | |
download | openembedded-core-contrib-8b98c0ecdd905395abbc452a2af5453a3faea362.tar.gz |
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>
-rw-r--r-- | rrs/tools/upgrade_history_internal.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rrs/tools/upgrade_history_internal.py b/rrs/tools/upgrade_history_internal.py index 0199640447..dcfd1af4ed 100644 --- a/rrs/tools/upgrade_history_internal.py +++ b/rrs/tools/upgrade_history_internal.py @@ -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': |