From b9cc980504131becc3d6a34bcac078f718dea300 Mon Sep 17 00:00:00 2001 From: Willy-JL Date: Tue, 28 Feb 2023 21:24:00 +0000 Subject: [PATCH] Fix unbound variable app_def --- scripts/fbt/appmanifest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/fbt/appmanifest.py b/scripts/fbt/appmanifest.py index aa03d265b..7ee86de02 100644 --- a/scripts/fbt/appmanifest.py +++ b/scripts/fbt/appmanifest.py @@ -193,6 +193,8 @@ class AppBuildset: return self.appmgr.get(app_name).supports_hardware_target(self.hw_target) def _get_app_depends(self, app_name: str) -> List[str]: + app_def = self.appmgr.get(app_name) + # Skip app if its target is not supported by the target we are building for if not self._check_if_app_target_supported(app_name): self._writer( @@ -200,7 +202,6 @@ class AppBuildset: ) return [] - app_def = self.appmgr.get(app_name) return list( filter( self._check_if_app_target_supported,