Skip to contentSkip to conversation

[1.46][PATCH] bitbake-worker: show debug output when network is enabled

PATCH Martin Jansa 1 participant 2 messages Feb 17, 2023

lore
Share & tools
lore
#0 lore raw
---
 bin/bitbake-worker | 2 ++
 1 file changed, 2 insertions(+)
bin/bitbake-worker +2 -0
index d743ff510..09e486f7e 100755
@@ -275,6 +275,8 @@ def fork_off_task(cfg, data, databuilder, workerdata, extraconfigdata, runtask):
                         bb.utils.disable_network(uid, gid)
                     else:
                         logger.debug("Skipping disable network for %s since %s is not a local uid." % (taskname, uid))
+                else:
+                    logger.debug("Skipping disable network for %s since network varFlag is set to %s." % (taskname, the_data.getVarFlag(taskname, 'network')))
 
                 # exported_vars() returns a generator which *cannot* be passed to os.environ.update() 
                 # successfully. We also need to unset anything from the environment which shouldn't be there 
Signature · 1 line
2.39.2
#1 lore raw

Sorry, wrong patch was sent, ignore this one.

Quoted 28 lines · Martin Jansa
---
 bin/bitbake-worker | 2 ++
 1 file changed, 2 insertions(+)
bin/bitbake-worker +0 -0
index d743ff510..09e486f7e 100755
@@ -275,6 +275,8 @@ def fork_off_task(cfg, data, databuilder, workerdata,

extraconfigdata, runtask):
bb.utils.disable_network(uid, gid)
else:
logger.debug("Skipping disable network for %s
since %s is not a local uid." % (taskname, uid))

bin/bitbake-worker +2 -0
+                else:
+                    logger.debug("Skipping disable network for %s since

network varFlag is set to %s." % (taskname, the_data.getVarFlag(taskname, 'network')))

# exported_vars() returns a generator which *cannot* be
passed to os.environ.update()

                 # successfully. We also need to unset anything from the
environment which shouldn't be there
--
2.39.2