From a87d9072687f71ee3d523462a3ae866beea278d1 Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Tue, 31 Jul 2018 10:37:07 -0500 Subject: [PATCH] Use labels keys instead of magic list --- tools/resources/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/resources/__init__.py b/tools/resources/__init__.py index 4668dd175e..02b421abbd 100644 --- a/tools/resources/__init__.py +++ b/tools/resources/__init__.py @@ -423,7 +423,7 @@ class Resources(object): self.add_file_ref(FileType.REPO_DIR, fake_path, dir_path) if (any(self._not_current_label(d, t) for t - in ['TARGET', 'TOOLCHAIN', 'FEATURE'])): + in self._labels.keys())): self._label_paths.append((dir_path, base_path, into_path)) self.ignore_dir(dir_path) dirs.remove(d)