From 71fb8066cc9470284efac2d3edbf9d6c1abe2666 Mon Sep 17 00:00:00 2001 From: Shad L. Lords Date: Mon, 26 Oct 2009 18:50:48 -0600 Subject: [PATCH] Add interface method to post action --- dispatch.py | 2 +- installclass.py | 2 +- kickstart.py | 2 +- packages.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dispatch.py b/dispatch.py index c7f1990..e9cda5b 100644 --- a/dispatch.py +++ b/dispatch.py @@ -155,7 +155,7 @@ installSteps = [ ("writeksconfig", writeKSConfiguration, ("id", "instPath")), ("setfilecon", setFileCons, ("instPath","id.partitions")), ("copylogs", copyAnacondaLogs, ("instPath",)), - ("dopostaction", doPostAction, ("id", "instPath")), + ("dopostaction", doPostAction, ("id", "instPath", "intf")), ("methodcomplete", doMethodComplete, ("method",)), ("complete", ()), ] diff --git a/installclass.py b/installclass.py index 0e98229..91c8d56 100644 --- a/installclass.py +++ b/installclass.py @@ -63,7 +63,7 @@ class BaseInstallClass: # we can use a different install data class installDataClass = InstallData - def postAction(self, rootPath, serial): + def postAction(self, rootPath, serial, intf): pass def setBootloader(self, id, useLilo=0, location=None, linear=1, diff --git a/kickstart.py b/kickstart.py index d88f46f..c4b67a6 100644 --- a/kickstart.py +++ b/kickstart.py @@ -98,7 +98,7 @@ class Script: class KickstartBase(BaseInstallClass): name = "kickstart" - def postAction(self, rootPath, serial): + def postAction(self, rootPath, serial, intf): log("Running kickstart %%post script(s)") for script in self.postScripts: script.run(rootPath, serial) diff --git a/packages.py b/packages.py index 629b04b..48827d8 100644 --- a/packages.py +++ b/packages.py @@ -55,8 +55,8 @@ def queryUpgradeContinue(intf, dir): sys.exit(0) return DISPATCH_FORWARD -def doPostAction(id, instPath): - id.instClass.postAction(instPath, flags.serial) +def doPostAction(id, instPath, intf): + id.instClass.postAction(instPath, flags.serial, intf) def firstbootConfiguration(id, instPath): if id.firstboot == FIRSTBOOT_RECONFIG: -- 1.5.5.6