summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorAnders Darander <anders@chargestorm.se>2016-05-20 11:01:01 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-20 10:20:56 +0100
commite73a85be3e020561db92a197c593afe7fd952919 (patch)
treeaf8aaff68a0e0d9657c602ef8a892fa31124e96f /meta/lib
parentbf4616d43b29ad3640c9152fb1d2b56311ebef1b (diff)
downloadopenembedded-core-contrib-e73a85be3e020561db92a197c593afe7fd952919.tar.gz
openembedded-core-contrib-e73a85be3e020561db92a197c593afe7fd952919.tar.bz2
openembedded-core-contrib-e73a85be3e020561db92a197c593afe7fd952919.zip
lib/oe/rootfs: Fix DEBUGFS generation, without openssl
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]. (From OE-Core rev: f6b0b260ce18a30d04edfb0afb7942b9f9a5480b) Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/rootfs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index f5c465fbd2..7087b12f25 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -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)