Message ID | 20230217122725.3637432-1-Martin.Jansa@gmail.com |
---|---|
State | New |
Headers | show |
Series | [1.46] bitbake-worker: show debug output when network is enabled | expand |
Sorry, wrong patch was sent, ignore this one. On Fri, Feb 17, 2023 at 1:27 PM Martin Jansa <martin.jansa@gmail.com> wrote: > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> > --- > bin/bitbake-worker | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/bin/bitbake-worker b/bin/bitbake-worker > index d743ff510..09e486f7e 100755 > --- a/bin/bitbake-worker > +++ b/bin/bitbake-worker > @@ -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 > -- > 2.39.2 > >
diff --git a/bin/bitbake-worker b/bin/bitbake-worker index d743ff510..09e486f7e 100755 --- a/bin/bitbake-worker +++ b/bin/bitbake-worker @@ -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
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> --- bin/bitbake-worker | 2 ++ 1 file changed, 2 insertions(+)