summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2017-03-23 13:21:22 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-23 16:30:29 +0000
commitbebdb056c8bd0efc056f07b275a154e5d5a3aa2b (patch)
tree41bd07861891d711a40b7bef3bb587d7919aff6e
parent778fb2342da55e202cfb7af04bbf120c1b68620a (diff)
downloadopenembedded-core-bebdb056c8bd0efc056f07b275a154e5d5a3aa2b.tar.gz
openembedded-core-bebdb056c8bd0efc056f07b275a154e5d5a3aa2b.tar.bz2
openembedded-core-bebdb056c8bd0efc056f07b275a154e5d5a3aa2b.zip
rootfs.py: Respect OPKGLIBDIR variable
* when OPKGLIBDIR doesn't have the default /var/lib value it will silently fail to copy package database from normal rootfs to debugfs rootfs and then when trying to install *-dbg complimentary packages it won't install anything, because installed_pkgs.txt file generated from debugfs is empty Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oe/rootfs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index 5e1c09762a..96591f370e 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -946,7 +946,9 @@ class OpkgRootfs(DpkgOpkgRootfs):
if self.progress_reporter:
self.progress_reporter.next_stage()
- self._setup_dbg_rootfs(['/var/lib/opkg'])
+ opkg_lib_dir = self.d.getVar('OPKGLIBDIR')
+ opkg_dir = os.path.join(opkg_lib_dir, 'opkg')
+ self._setup_dbg_rootfs([opkg_dir])
execute_pre_post_process(self.d, opkg_post_process_cmds)