Skip to content

Commit a87d907

Browse files
committed
Use labels keys instead of magic list
1 parent 79ee1b8 commit a87d907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/resources/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def add_directory(
423423
self.add_file_ref(FileType.REPO_DIR, fake_path, dir_path)
424424

425425
if (any(self._not_current_label(d, t) for t
426-
in ['TARGET', 'TOOLCHAIN', 'FEATURE'])):
426+
in self._labels.keys())):
427427
self._label_paths.append((dir_path, base_path, into_path))
428428
self.ignore_dir(dir_path)
429429
dirs.remove(d)

0 commit comments

Comments
 (0)