Skip to content

Commit f675e16

Browse files
committed
ebuildtester/docker.py: improve enable_global_use
* add guard to check whether the option is used * log it's usage
1 parent b2a1058 commit f675e16

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

ebuildtester/docker.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,12 @@ def _install_basics(self):
290290

291291
def _enable_global_use(self):
292292
"""Enable global USE settings."""
293-
for u in options.options.global_use:
294-
self.execute("euse --enable %s" % u)
293+
if not options.options.global_use:
294+
options.log.info("no global USE flags given, skipping")
295+
else:
296+
options.log.info("setting global USE flags")
297+
for u in options.options.global_use:
298+
self.execute("euse --enable %s" % u)
295299

296300
def _set_gcc(self):
297301
"""Set gcc in the container."""

0 commit comments

Comments
 (0)