summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/package_manager.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 1279b50e99..ec96bb3d62 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -180,7 +180,7 @@ class DpkgIndexer(Indexer):
180 if sdk_pkg_archs is not None: 180 if sdk_pkg_archs is not None:
181 arch_list += sdk_pkg_archs.split() 181 arch_list += sdk_pkg_archs.split()
182 182
183 dpkg_scanpackages = bb.utils.which(os.getenv('PATH'), "dpkg-scanpackages") 183 apt_ftparchive = bb.utils.which(os.getenv('PATH'), "apt-ftparchive")
184 gzip = bb.utils.which(os.getenv('PATH'), "gzip") 184 gzip = bb.utils.which(os.getenv('PATH'), "gzip")
185 185
186 index_cmds = [] 186 index_cmds = []
@@ -190,11 +190,17 @@ class DpkgIndexer(Indexer):
190 if not os.path.isdir(arch_dir): 190 if not os.path.isdir(arch_dir):
191 continue 191 continue
192 192
193 index_cmds.append("cd %s; PSEUDO_UNLOAD=1 %s packages > Packages" %
194 (arch_dir, apt_ftparchive))
195
196 index_cmds.append("cd %s; %s Packages -c > Packages.gz" %
197 (arch_dir, gzip))
198
193 with open(os.path.join(arch_dir, "Release"), "w+") as release: 199 with open(os.path.join(arch_dir, "Release"), "w+") as release:
194 release.write("Label: %s" % arch) 200 release.write("Label: %s" % arch)
195 201
196 index_cmds.append("cd %s; %s . | %s > Packages.gz" % 202 index_cmds.append("cd %s; PSEUDO_UNLOAD=1 %s release >> Release" %
197 (arch_dir, dpkg_scanpackages, gzip)) 203 (arch_dir, apt_ftparchive))
198 204
199 deb_dirs_found = True 205 deb_dirs_found = True
200 206