Skip to content

Commit 2f625a1

Browse files
authored
Merge pull request nicolasbock#98 from waebbl/global-use
improve enable_global_use
2 parents b2a1058 + f675e16 commit 2f625a1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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)