[master 2/2] Fix pre-install script execution

bcl installerbot-noreply at redhat.com
Tue Aug 4 18:13:27 UTC 2015


From: "Brian C. Lane" <bcl at redhat.com>

preInstall was using a map, but in py3 that returns a generator instead
of actually doing anything. Switch it to a simple loop instead.
---
 pyanaconda/kickstart.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 31c5382..c3c19a4 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -2150,7 +2150,10 @@ def runPreInstallScripts(scripts):
         return
 
     log.info("Running kickstart %%pre-install script(s)")
-    map(lambda s: s.run("/"), preInstallScripts)
+
+    for script in preInstallScripts:
+        script.run("/")
+
     log.info("All kickstart %%pre-install script(s) have been run")
 
 def runTracebackScripts(scripts):


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/4bdedb820cd60690927ea3e25abe4a1647db4b41


More information about the anaconda-patches mailing list