[elbe-devel] [PATCH v2 12/22] virtapt: remove unused buildtype code

Bastian Germann bage at linutronix.de
Tue Jul 2 17:01:03 CEST 2019


> with bc8e702caf87 ("virtapt: massive refactoring to make it work again")
> an ElbeXML object is passed to the constructor of VirtApt now.
> 
> ElbeXML.__init__() contains the builttype detection logic, so this
> is not needed anymore.
> 
> remove the unused variable.
> 
> Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>

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

> ---
>  elbepack/virtapt.py | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/elbepack/virtapt.py b/elbepack/virtapt.py
> index 4cb447be0..ed7235b70 100644
> --- a/elbepack/virtapt.py
> +++ b/elbepack/virtapt.py
> @@ -80,11 +80,6 @@ class VirtApt(object):
>  
>          self.xml = xml
>  
> -        if xml.has("project/buildtype"):
> -            buildtype = xml.text("/project/buildtype")
> -        else:
> -            buildtype = "nodefaults"
> -
>          arch = xml.text("project/buildimage/arch", key="arch")
>          suite = xml.text("project/suite")
>  
> 



More information about the elbe-devel mailing list