waf: px4: use copy of "use" in px4_import_objects_from_use()

Utils.to_list() returns the argument if it is a list, which means that
px4_import_objects_from_use() cleared that attribute when processing the queue.
This commit is contained in:
Gustavo Jose de Sousa 2016-08-01 18:59:27 -03:00 committed by Lucas De Marchi
parent 424f6490fc
commit 8fb6ccc8b7
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def px4_dynamic_env(self):
@after_method('apply_link')
@before_method('process_use')
def px4_import_objects_from_use(self):
queue = Utils.to_list(getattr(self, 'use', []))
queue = list(Utils.to_list(getattr(self, 'use', [])))
names = set()
while queue: