aboutsummaryrefslogtreecommitdiffstats
path: root/rrs/tools/upgrade_history_internal.py
diff options
context:
space:
mode:
Diffstat (limited to 'rrs/tools/upgrade_history_internal.py')
-rw-r--r--rrs/tools/upgrade_history_internal.py3
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':