summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-09-11 15:30:28 -0400
committerJeremy Katz <katzj@redhat.com>2008-09-29 10:14:35 -0400
commit84e218b892fdc4fd92ec3b57348fa729de4ebd95 (patch)
treef6595e43230e4b63869ac64d01842a47ca194d30 /yuminstall.py
parentd1d832b242f570294ee4196db915095f91d08542 (diff)
downloadanaconda-84e218b892fdc4fd92ec3b57348fa729de4ebd95.tar.gz
anaconda-84e218b892fdc4fd92ec3b57348fa729de4ebd95.tar.xz
anaconda-84e218b892fdc4fd92ec3b57348fa729de4ebd95.zip
Add a basic reset method
Add a basic reset method to reset the set of installed packages to be nothing. This is one part of fixing #457583
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/yuminstall.py b/yuminstall.py
index d04634990..5f9ce6312 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1127,6 +1127,11 @@ txt)
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)
+
def selectModulePackages(self, anaconda, kernelPkgName):
(base, sep, ext) = kernelPkgName.partition("-")