summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oe/package_manager.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 2802254f1f..30e1de99b9 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -176,7 +176,7 @@ class RpmIndexer(Indexer):
176 dbpath = os.path.join(self.d.getVar('WORKDIR', True), 'rpmdb', arch) 176 dbpath = os.path.join(self.d.getVar('WORKDIR', True), 'rpmdb', arch)
177 if os.path.exists(dbpath): 177 if os.path.exists(dbpath):
178 bb.utils.remove(dbpath, True) 178 bb.utils.remove(dbpath, True)
179 arch_dir = os.path.join(self.d.getVar('WORKDIR', True), 'rpms', arch) 179 arch_dir = os.path.join(self.deploy_dir, arch)
180 if not os.path.isdir(arch_dir): 180 if not os.path.isdir(arch_dir):
181 continue 181 continue
182 182
@@ -686,7 +686,8 @@ class RpmPM(PackageManager):
686 if not os.path.exists(self.d.expand('${T}/saved')): 686 if not os.path.exists(self.d.expand('${T}/saved')):
687 bb.utils.mkdirhier(self.d.expand('${T}/saved')) 687 bb.utils.mkdirhier(self.d.expand('${T}/saved'))
688 688
689 self.indexer = RpmIndexer(self.d, self.deploy_dir) 689 packageindex_dir = os.path.join(self.d.getVar('WORKDIR', True), 'rpms')
690 self.indexer = RpmIndexer(self.d, packageindex_dir)
690 self.pkgs_list = RpmPkgsList(self.d, self.target_rootfs, arch_var, os_var) 691 self.pkgs_list = RpmPkgsList(self.d, self.target_rootfs, arch_var, os_var)
691 692
692 self.ml_prefix_list, self.ml_os_list = self.indexer.get_ml_prefix_and_os_list(arch_var, os_var) 693 self.ml_prefix_list, self.ml_os_list = self.indexer.get_ml_prefix_and_os_list(arch_var, os_var)