diff options
Diffstat (limited to 'meta/lib/oe/package_manager.py')
-rw-r--r-- | meta/lib/oe/package_manager.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 743c7cb496..ed0c9a7d3d 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -111,11 +111,15 @@ class RpmIndexer(Indexer): | |||
111 | index_cmds = [] | 111 | index_cmds = [] |
112 | rpm_dirs_found = False | 112 | rpm_dirs_found = False |
113 | for arch in archs: | 113 | for arch in archs: |
114 | dbpath = os.path.join(self.d.getVar('WORKDIR', True), 'rpmdb', arch) | ||
115 | if os.path.exists(dbpath): | ||
116 | bb.utils.remove(dbpath, True) | ||
114 | arch_dir = os.path.join(self.deploy_dir, arch) | 117 | arch_dir = os.path.join(self.deploy_dir, arch) |
115 | if not os.path.isdir(arch_dir): | 118 | if not os.path.isdir(arch_dir): |
116 | continue | 119 | continue |
117 | 120 | ||
118 | index_cmds.append("%s --update -q %s" % (rpm_createrepo, arch_dir)) | 121 | index_cmds.append("%s --dbpath %s --update -q %s" % \ |
122 | (rpm_createrepo, dbpath, arch_dir)) | ||
119 | 123 | ||
120 | rpm_dirs_found = True | 124 | rpm_dirs_found = True |
121 | 125 | ||