[elbe-devel] [PATCH v2 06/28] Remove logpath from project manager and db

Torben Hohn torben.hohn at linutronix.de
Wed Jun 26 14:33:30 CEST 2019


On Fri, Jun 21, 2019 at 07:39:58PM +0200, dion at linutronix.de wrote:
> From: Olivier Dion <dion at linutronix.de>
> 
> Signed-off-by: Olivier Dion <dion at linutronix.de>
> ---
>  elbepack/db.py             |  1 -
>  elbepack/projectmanager.py | 10 ++++------
>  2 files changed, 4 insertions(+), 7 deletions(-)
> 
> diff --git a/elbepack/db.py b/elbepack/db.py
> index f2333c87..7590329d 100644
> --- a/elbepack/db.py
> +++ b/elbepack/db.py
> @@ -455,7 +455,6 @@ class ElbeDB(object):
>      def load_project(
>              self,
>              builddir,
> -            logpath=None,
>              url_validation=ValidationMode.CHECK_ALL):

i dont see, where the logpath is removed from the call

-------------------------------------------------------------------------------------
                return ElbeProject(p.builddir, name=p.name, logpath=logpath,
                                   postbuild_file=postbuild_file,
                                   presh_file=presh_file,
                                   postsh_file=postsh_file,
                                   savesh_file=savesh_file,
                                   url_validation=url_validation)
-------------------------------------------------------------------------------------


>  
>          # pass exceptions if hook-scripts can't be loaded (they're optional)
> diff --git a/elbepack/projectmanager.py b/elbepack/projectmanager.py
> index 0e241a66..f8ed894f 100644
> --- a/elbepack/projectmanager.py
> +++ b/elbepack/projectmanager.py
> @@ -108,9 +108,8 @@ class ProjectManager(object):
>                  raise
>  
>              # Open the new project
> -            logpath = path.join(builddir, "log.txt")
> -            ep = self.db.load_project(
> -                builddir, logpath, url_validation=url_validation)
> +            ep = self.db.load_project(builddir,
> +                                      url_validation=url_validation)
>  
>              self.userid2project[userid] = ep
>              self.builddir2userid[builddir] = userid
> @@ -140,9 +139,8 @@ class ProjectManager(object):
>              self._close_current_project(userid)
>  
>              # Load project from the database
> -            logpath = path.join(builddir, "log.txt")
> -            ep = self.db.load_project(
> -                builddir, logpath, url_validation=url_validation)
> +            ep = self.db.load_project(builddir,
> +                                      url_validation=url_validation)
>  
>              # Add project to our dictionaries
>              self.userid2project[userid] = ep
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list