[elbe-devel] [PATCH 2/2] elbexml: Try to fix missing deb-src
Olivier Dion
dion at linutronix.de
Tue Aug 18 21:10:56 CEST 2020
While fixing elbe-initvm-submit for bin-cdrom.iso, I get the following
error on rebuild of examples/arm64-qemu-virt.xml:
----------------------------------------------------------------------
[ERROR dump.py:140] Package 'gdbm-l10n' is not installed
[ERROR dump.py:140] Package 'libnewt0.52' is not installed
[ERROR dump.py:140] Package 'libslang2' is not installed
[ERROR dump.py:140] Package 'whiptail' is not installed
...
[INFO] Adding main component
Get:1 copy:/cdrom/targetrepo buster InRelease [3342 B]
[ERROR cdroms.py:43] Unknown exception: E:You must put some 'source' URIs in your sources.list
Traceback (most recent call last):
File "/var/cache/elbe/devel/elbepack/cdroms.py", line 36, in add_source_pkg
'/var/cache/elbe/sources')
File "<string>", line 2, in download_source
File "/usr/lib/python2.7/multiprocessing/managers.py", line 774, in _callmethod
raise convert_to_error(kind, result)
Error: E:You must put some 'source' URIs in your sources.list
...
----------------------------------------------------------------------
Project's chroot|target /etc/sources.list are
----------------------------------------------------------------------
deb copy:///cdrom/targetrepo buster main added
deb-src copy:///cdrom/targetrepo buster main added
----------------------------------------------------------------------
This patch tries to fix this without much success. It seems that this
is related to the new components added to the src-cdrom*.iso.
Anyone has an idea?
Not-signed-off-by: Olivier Dion <dion at linutronix.de>
---
elbepack/elbexml.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/elbepack/elbexml.py b/elbepack/elbexml.py
index 022e5b3f..b5a7a520 100644
--- a/elbepack/elbexml.py
+++ b/elbepack/elbexml.py
@@ -220,8 +220,11 @@ class ElbeXML(object):
if self.prj.has("mirror/cdrom"):
mirrors.append("deb copy:///cdrom/targetrepo %s main added" %
suite)
+ if build_sources:
+ mirrors.append("deb-src copy:///cdrom/targetrepo %s main added" %
+ suite)
- return replace_localmachine('\n'.join(mirrors), initvm)
+ return replace_localmachine('\n'.join(mirrors) + '\n', initvm)
@staticmethod
def validate_repo(r):
--
2.28.0
More information about the elbe-devel
mailing list