[elbe-devel] [PATCH 3/5] cdroms: Change call to download_source
Olivier Dion
dion at linutronix.de
Wed May 20 04:27:01 CEST 2020
Since there's no default version for the source package in the call of
download_source, the parameter version and dest_dir were reversed.
Also, added a logging for component just to keep track which packages
are from whom.
Signed-off-by: Olivier Dion <dion at linutronix.de>
---
elbepack/cdroms.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/elbepack/cdroms.py b/elbepack/cdroms.py
index 72d0fba6..a09e0525 100644
--- a/elbepack/cdroms.py
+++ b/elbepack/cdroms.py
@@ -30,9 +30,7 @@ def add_source_pkg(repo, component, cache, pkg, version, forbid):
return
pkg_id = "%s-%s" % (pkg, version)
try:
- dsc = cache.download_source(pkg,
- '/var/cache/elbe/sources',
- version=version)
+ dsc = cache.download_source(pkg, version, '/var/cache/elbe/sources')
repo.includedsc(dsc, component=component, force=True)
except ValueError:
logging.error("No sources for package '%s'", pkg_id)
@@ -65,6 +63,7 @@ def mk_source_cdrom(components, codename,
pass
for component, (rfs, cache, pkg_lst) in components.items():
+ logging.info("Adding %s component", component)
rfs.mkdir_p('/var/cache/elbe/sources')
for pkg, version in pkg_lst:
add_source_pkg(repo, component,
--
2.26.2
More information about the elbe-devel
mailing list