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

Manuel Traut manut at linutronix.de
Wed Apr 24 16:05:52 CEST 2019


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>
---
 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




More information about the elbe-devel mailing list