[elbe-devel] [PATCH 1/4] Preprocessor handle 'key' tag in initvm context

dion at linutronix.de dion at linutronix.de
Wed Jun 26 12:57:53 CEST 2019


From: Olivier Dion <dion at linutronix.de>

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 elbepack/xmlpreprocess.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/xmlpreprocess.py b/elbepack/xmlpreprocess.py
index 7a72048a..d9da5dda 100644
--- a/elbepack/xmlpreprocess.py
+++ b/elbepack/xmlpreprocess.py
@@ -33,7 +33,7 @@ class XMLPreprocessError(Exception):
 
 def preprocess_pgp_key(xml):
 
-    for key in xml.iterfind('project/mirror/url-list/url/key'):
+    for key in xml.iterfind('.//key'):
         print("[WARN] <key>%s</key> is deprecated.  You should use raw-key instead." % key.text)
         try:
             keyurl = key.text.strip().replace('LOCALMACHINE', 'localhost')
-- 
2.11.0




More information about the elbe-devel mailing list