[master][rhel7-branch][PATCH] Don't crash on anaconda-yum output containing multiple colons (#1092441)
Martin Kolman
mkolman at redhat.com
Tue Apr 29 11:44:53 UTC 2014
The only reason this did not crash previously is that lines returned by the
anaconda-yum script did not contain more than one colon.
But once a new message with two colons has been added as part of the package download
retry feature, the split started to return 3 items, triggering the crash.
Signed-off-by: Martin Kolman <mkolman at redhat.com>
---
pyanaconda/packaging/yumpayload.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index df02ab5..878b28e 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -1453,7 +1453,7 @@ reposdir=%s
try:
for line in execReadlines("/usr/libexec/anaconda/anaconda-yum", args):
if line.startswith("PROGRESS_"):
- key, text = line.split(":", 2)
+ key, text = line.split(":", 1)
msg = progress_map[key] + text
progressQ.send_message(msg)
log.debug(msg)
--
1.9.0
More information about the anaconda-patches
mailing list