Skip to content

Commit 3561f56

Browse files
committed
Apply product commands in a more pythonic way
1 parent d3ce07c commit 3561f56

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/script.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -226,15 +226,7 @@ def generate_products(self):
226226
script = flags + commands
227227

228228
for product in self.products:
229-
items = product.generate()
230-
for item in items:
231-
if isinstance(item, list):
232-
for subitem in item:
233-
#TODO: What to do with this elements?
234-
#script += subitem
235-
continue
236-
else:
237-
script += item
229+
script += "".join([product_build_command for product_build_command in product.generate() if not isinstance(product_build_command, list)])
238230

239231
script += """
240232

0 commit comments

Comments
 (0)