[elbe-devel] [PATCH] packer: set default to use NoPacker instead of None

Torben Hohn torben.hohn at linutronix.de
Thu Apr 25 11:12:52 CEST 2019



On Wed, Apr 24, 2019 at 04:05:52PM +0200, Manuel Traut wrote:
> this fixes
> 
> --8<--
> Build failed
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/elbepack/asyncworker.py", line 158, in
> execute
>     skip_pbuild=self.skip_pbuilder)
>   File "/usr/lib/python2.7/dist-packages/elbepack/elbeproject.py", line 598, in
> build
>     self.targetfs.pack_images(self.builddir)
>   File "/usr/lib/python2.7/dist-packages/elbepack/efilesystem.py", line 373, in
> pack_images
>     packed = packer.pack_file(self.log, builddir, img)
> AttributeError: 'NoneType' object has no attribute 'pack_file'
> 
> Exception:
> 'NoneType' object has no attribute 'pack_file'
> --8<--
> 
> Signed-off-by: Manuel Traut <manut at linutronix.de>

Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>

> ---
>  elbepack/packers.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/elbepack/packers.py b/elbepack/packers.py
> index aeed645d..38bf95b8 100644
> --- a/elbepack/packers.py
> +++ b/elbepack/packers.py
> @@ -69,7 +69,7 @@ class TarArchiver(Packer):
>          return fname + self.suffix
>  
>  
> -packers = {'none': None,
> +packers = {'none': NoPacker(),
>             'gzip': InPlacePacker('gzip -f', '.gz'),
>             'tar':  TarArchiver('', '.tar'),
>             'tarxz': TarArchiver('J', '.tar.xz'),
> -- 
> 2.20.1
> 

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20190425/efcdf82b/attachment.sig>


More information about the elbe-devel mailing list