[elbe-devel] [PATCH v3 4/4] commands mkcdrom: Modify call to mk_source_cdrom

Olivier Dion dion at linutronix.de
Tue May 12 00:02:37 CEST 2020


Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 elbepack/commands/mkcdrom.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/elbepack/commands/mkcdrom.py b/elbepack/commands/mkcdrom.py
index 0f3b42aa..82551a1c 100644
--- a/elbepack/commands/mkcdrom.py
+++ b/elbepack/commands/mkcdrom.py
@@ -17,6 +17,7 @@ from elbepack.elbeproject import ElbeProject
 from elbepack.elbexml import ValidationError
 from elbepack.efilesystem import ChRootFilesystem
 from elbepack.log import elbe_logging
+from elbepack.rpcaptcache import get_rpcaptcache
 
 from elbepack.cdroms import mk_source_cdrom, mk_binary_cdrom, CDROM_SIZE
 
@@ -90,7 +91,11 @@ def run_command(argv):
         generated_files = []
         if opt.source:
             with rfs:
-                generated_files += mk_source_cdrom(rfs, arch, codename,
+                cache = get_rpcaptcache(rfs, arch)
+                pkg_lst = [(pkg.name, pkg.installed_version)
+                           for pkg in cache.get_installed_pkgs()]
+                components = {"main":(rfs, cache, pkg_lst)}
+                generated_files += mk_source_cdrom(components, codename,
                                                    init_codename, builddir,
                                                    opt.cdrom_size)
 
-- 
2.26.2




More information about the elbe-devel mailing list