[elbe-devel] [PATCH 2/3] xmlpreprocess: fix LOCALMACHINE replace
Torben Hohn
torben.hohn at linutronix.de
Wed May 29 16:30:51 CEST 2019
preprocess runs outside the initvm, LOCALMACHINE must be replaced
with localhost here.
Fix it.
Signed-off-by: Torben Hohn <torben.hohn 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 5b4bcb23b..7a72048ab 100644
--- a/elbepack/xmlpreprocess.py
+++ b/elbepack/xmlpreprocess.py
@@ -36,7 +36,7 @@ def preprocess_pgp_key(xml):
for key in xml.iterfind('project/mirror/url-list/url/key'):
print("[WARN] <key>%s</key> is deprecated. You should use raw-key instead." % key.text)
try:
- keyurl = key.text.strip().replace('LOCALMACHINE', '10.0.2.2')
+ keyurl = key.text.strip().replace('LOCALMACHINE', 'localhost')
myKey = urllib2.urlopen(keyurl).read()
key.tag = "raw-key"
key.text = "\n%s\n" % myKey
--
2.11.0
More information about the elbe-devel
mailing list