[elbe-devel] [PATCH v2 03/12] repomanager: correct initvm related CdromSrcRepo attributes

Torben Hohn torben.hohn at linutronix.de
Mon Nov 12 17:43:04 CET 2018


Initvm uses components main and main/debian-installer. This is not
useful, because (contrary to binary Cdrom repos) initvm and target
share the source repo. This does not allow adding different package
versions for initvm and target, when arch and codename are identical.

Also, main/debian-installer does not contain sourcecode, and
additionally triggers a call to reprepro update during Repository
initialisation.

Rename component 'main' to 'initvm' for source repos. And drop
'main/debian-installer' completely.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
Signed-off-by: Manuel Traut <manut at linutronix.de>
Reviewed-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/repomanager.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/elbepack/repomanager.py b/elbepack/repomanager.py
index 4e37daeb..da62259b 100644
--- a/elbepack/repomanager.py
+++ b/elbepack/repomanager.py
@@ -393,9 +393,10 @@ class CdromSrcRepo(RepoBase):
                                     mirror)
 
         if init_codename is not None:
-            init_attrs = RepoAttributes(
-                init_codename, "source", [
-                    "main", "main/debian-installer"], mirror)
+            init_attrs = RepoAttributes(init_codename,
+                                        "source",
+                                        ["initvm"],
+                                        mirror)
         else:
             init_attrs = None
 
-- 
2.11.0




More information about the elbe-devel mailing list