[elbe-devel] [PATCH 2/2] asyncworker: reset maximum loglevel of project, when enqueing AsyncJob

Bastian Germann bage at linutronix.de
Wed Oct 16 17:52:46 CEST 2019


> for a pbuilder, a failed build would create a persistent loglevel,
> which results in subsequent pbuilder invocations to return a fail
> result.
> 
> reset it upon each enqueue
> 
> Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>

Reviewed-by: Bastian Germann <bage at linutronix.de>

> ---
>  elbepack/asyncworker.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/elbepack/asyncworker.py b/elbepack/asyncworker.py
> index aa034df24..287beb874 100644
> --- a/elbepack/asyncworker.py
> +++ b/elbepack/asyncworker.py
> @@ -19,7 +19,7 @@ from elbepack.pkgarchive import gen_binpkg_archive, checkout_binpkg_archive
>  from elbepack.rfs import DebootstrapException
>  from elbepack.elbeproject import AptCacheCommitError, AptCacheUpdateError
>  from elbepack.shellhelper import do
> -from elbepack.log import elbe_logging, read_maxlevel
> +from elbepack.log import elbe_logging, read_maxlevel, reset_level
>  
>  
>  class AsyncWorkerJob(object):
> @@ -32,6 +32,7 @@ class AsyncWorkerJob(object):
>          self.project = project
>  
>      def enqueue(self, queue, db):
> +        reset_level(self.project.builddir)
>          queue.put(self)
>  
>      def execute(self, db):
> 



More information about the elbe-devel mailing list