[elbe-devel] [PATCH v3 1/1] Change the location of src-opts

Akash Satamkar akash at linutronix.de
Thu Aug 22 11:22:38 CEST 2019


Change the location of src-opts inside src-cdrom in xmlpreprocess.py and isooptions.py files.

Signed-off-by: Akash Satamkar <akash at linutronix.de>
---
 elbepack/isooptions.py    | 2 +-
 elbepack/xmlpreprocess.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/elbepack/isooptions.py b/elbepack/isooptions.py
index beab6ce6..14101047 100644
--- a/elbepack/isooptions.py
+++ b/elbepack/isooptions.py
@@ -33,7 +33,7 @@ def iso_option_valid(opt_name, text):
 
 def get_iso_options(log, xml):
     options = []
-    src_opts = xml.node("target/src-opts")
+    src_opts = xml.node("src-cdrom/src-opts")
     if src_opts is None:
         return ""
     for node in src_opts:
diff --git a/elbepack/xmlpreprocess.py b/elbepack/xmlpreprocess.py
index 22ec2c7d..0e986a75 100644
--- a/elbepack/xmlpreprocess.py
+++ b/elbepack/xmlpreprocess.py
@@ -46,7 +46,7 @@ def preprocess_pgp_key(xml):
 
 def preprocess_iso_option(xml):
 
-    src_opts = xml.find(".//target/src-opts")
+    src_opts = xml.find(".//src-cdrom/src-opts")
     if src_opts is None:
         return
     strict = "strict" in src_opts.attrib and src_opts.attrib["strict"] == "true"
-- 
2.20.1




More information about the elbe-devel mailing list