[elbe-devel] [PATCH v1 2/2] elbepack: elbexml.py: cdrom mirrors

Viraj Shah viraj.shah at linutronix.de
Wed Aug 10 11:53:53 CEST 2022


* Add basic mirror for cdrom for the corresponding suite.
* Also add the mirror for the sources.

Signed-off-by: Viraj Shah <viraj.shah 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 d3f8fef91..e6eec3964 100644
--- a/elbepack/elbexml.py
+++ b/elbepack/elbexml.py
@@ -214,7 +214,10 @@ class ElbeXML:
                                        (' '.join(options), src_url))
 
         if self.prj.has("mirror/cdrom"):
-            mirrors.append("deb copy:///cdrom/targetrepo %s main added" %
+            mirrors.append("deb http://ftp.de.debian.org/debian %s main" %
+                           suite)
+            if build_sources:
+                mirrors.append("deb-src http://ftp.de.debian.org/debian %s main" %
                            suite)
 
         return replace_localmachine('\n'.join(mirrors), initvm)
-- 
2.30.2



More information about the elbe-devel mailing list