summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oe/package_manager.py24
1 files changed, 15 insertions, 9 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index d29adaca7b..ff4f1dee03 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -1519,19 +1519,25 @@ class DpkgPM(PackageManager):
1519 1519
1520 1520
1521def generate_index_files(d): 1521def generate_index_files(d):
1522 img_type = d.getVar('IMAGE_PKGTYPE', True) 1522 classes = d.getVar('PACKAGE_CLASSES', True).replace("package_", "").split()
1523
1524 indexer_map = {
1525 "rpm": (RpmIndexer, d.getVar('DEPLOY_DIR_RPM', True)),
1526 "ipk": (OpkgIndexer, d.getVar('DEPLOY_DIR_IPK', True)),
1527 "deb": (DpkgIndexer, d.getVar('DEPLOY_DIR_DEB', True))
1528 }
1523 1529
1524 result = None 1530 result = None
1525 1531
1526 if img_type == "rpm": 1532 for pkg_class in classes:
1527 result = RpmIndexer(d, d.getVar('DEPLOY_DIR_RPM', True)).write_index() 1533 if not pkg_class in indexer_map:
1528 elif img_type == "ipk": 1534 continue
1529 result = OpkgIndexer(d, d.getVar('DEPLOY_DIR_IPK', True)).write_index() 1535
1530 elif img_type == "deb": 1536 if os.path.exists(indexer_map[pkg_class][1]):
1531 result = DpkgIndexer(d, d.getVar('DEPLOY_DIR_DEB', True)).write_index() 1537 result = indexer_map[pkg_class][0](d, indexer_map[pkg_class][1]).write_index()
1532 1538
1533 if result is not None: 1539 if result is not None:
1534 bb.fatal(result) 1540 bb.fatal(result)
1535 1541
1536if __name__ == "__main__": 1542if __name__ == "__main__":
1537 """ 1543 """