With new flow, we don't need this because we start with new YumBackend after going [Back]. --- pyanaconda/backend.py | 4 ++-- pyanaconda/textw/task_text.py | 1 - pyanaconda/yuminstall.py | 8 -------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/pyanaconda/backend.py b/pyanaconda/backend.py index 6166d2c..2f4cecc 100644 --- a/pyanaconda/backend.py +++ b/pyanaconda/backend.py @@ -290,11 +290,11 @@ def doInstall(anaconda): # does this need to be per-backend? we'll just leave here until it does :) def doBasePackageSelect(anaconda): + if anaconda.dir == DISPATCH_BACK: + return DISPATCH_BACK if anaconda.ksdata: - anaconda.backend.resetPackageSelections() kickstart.selectPackages(anaconda) elif anaconda.displayMode != 't': - anaconda.backend.resetPackageSelections() anaconda.instClass.setPackageSelection(anaconda) anaconda.instClass.setGroupSelection(anaconda) diff --git a/pyanaconda/textw/task_text.py b/pyanaconda/textw/task_text.py index 416e572..3dd9290 100644 --- a/pyanaconda/textw/task_text.py +++ b/pyanaconda/textw/task_text.py @@ -22,7 +22,6 @@ from pyanaconda.constants import * class TaskWindow: def __call__(self, screen, anaconda): - anaconda.backend.resetPackageSelections() anaconda.backend.selectGroup("Core") return INSTALL_OK diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py index 3ddf6b2..c94f14c 100644 --- a/pyanaconda/yuminstall.py +++ b/pyanaconda/yuminstall.py @@ -1424,14 +1424,6 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon rc.append(g.groupid) return rc - def resetPackageSelections(self): - """Reset the package selection to an empty state.""" - for txmbr in self.ayum.tsInfo: - self.ayum.tsInfo.remove(txmbr.pkgtup) - self.ayum.tsInfo.conditionals.clear() - for grp in self.ayum.comps.groups: - grp.selected = False - def selectModulePackages(self, anaconda, kernelPkgName): (base, sep, ext) = kernelPkgName.partition("-") -- 1.7.2 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list