From 45e723b53696542b0bc151c444fb4778f376ae5b Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 24 Oct 2005 20:40:47 +0000 Subject: 2005-10-24 Jeremy Katz * dispatch.py (installSteps): Break out reposetup and base package selection into separate steps. * installclass.py (BaseInstallClass.setSteps): Likewise. * yuminstall.py (YumBackend.doRepoSetup): Add backend repo setup. * backend.py (doBasePackageSelect): Implement generically for now --- yuminstall.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'yuminstall.py') diff --git a/yuminstall.py b/yuminstall.py index f1e3dda24..05ab376cc 100644 --- a/yuminstall.py +++ b/yuminstall.py @@ -265,11 +265,9 @@ class YumBackend(AnacondaBackend): # FIXME: this is a bad hack until we can get something better into yum self.anaconda_grouplist = [] - # FIXME: this step is actually probably not broken out properly - def doPreSelection(self, intf, id, instPath): + def doRepoSetup(self, intf, instPath): if not os.path.exists("/tmp/cache"): iutil.mkdirChain("/tmp/cache/headers") - # this should be in some sort of backend setup step tasks = (self.ayum.doMacros, self.ayum.doTsSetup, self.ayum.doRpmDBSetup, @@ -278,8 +276,8 @@ class YumBackend(AnacondaBackend): self.ayum.doGroupSetup, self.ayum.doSackSetup ) - - waitwin = YumProgress(intf, _("Getting installation information"), len(tasks)) + waitwin = YumProgress(intf, _("Retrieving installation information"), + len(tasks)) self.ayum.repos.callback = waitwin try: @@ -297,12 +295,6 @@ class YumBackend(AnacondaBackend): type="custom", custom_icon="error", custom_buttons=[_("_Exit")]) sys.exit(0) - - - # then a base package selection step - if id: # hack for my test script :) - id.instClass.setPackageSelection(self) - id.instClass.setGroupSelection(self) def selectBestKernel(self): """Find the best kernel package which is available and select it.""" -- cgit