]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oe/rootfs: Fix DEBUGFS generation, without openssl
authorAnders Darander <anders@chargestorm.se>
Fri, 20 May 2016 09:01:01 +0000 (11:01 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 May 2016 09:20:42 +0000 (10:20 +0100)
In commit 20ea6d274bb0a9a5addb111f32793de49b907865, debugfs generation
for images using opkg, which included openssl was fixed.

However, that broke the generation of the opkg-based images, that lacks
openssl. The error is a python stack trace, showing that shutil.copytree
tries to copy a non-existing directory.

This relates to [YOCTO #9040].

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/rootfs.py

index f5c465fbd20e3d4d52c555db7bf3ab43c8459e11..7087b12f2525ab6a7aff3dfe6fb3c1090c4c9c11 100644 (file)
@@ -116,6 +116,8 @@ class Rootfs(object):
 
         bb.note("  Copying back package database...")
         for dir in dirs:
+            if not os.path.isdir(self.image_rootfs + '-orig' + dir):
+                continue
             bb.utils.mkdirhier(self.image_rootfs + os.path.dirname(dir))
             shutil.copytree(self.image_rootfs + '-orig' + dir, self.image_rootfs + dir, symlinks=True)