summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-05-17 18:23:48 +0000
committerJeremy Katz <katzj@redhat.com>2007-05-17 18:23:48 +0000
commitf7826e03ea272f3258c6fc7314e64299c25cdae3 (patch)
tree6a1ea5df649a47ded3e82a95411748a9b2a37fce
parentdc04d89f2120859df75bf5a392f3719cabc05802 (diff)
downloadanaconda-f7826e03ea272f3258c6fc7314e64299c25cdae3.tar.gz
anaconda-f7826e03ea272f3258c6fc7314e64299c25cdae3.tar.xz
anaconda-f7826e03ea272f3258c6fc7314e64299c25cdae3.zip
2007-05-17 Jeremy Katz <katzj@redhat.com>
* yuminstall.py (YumBackend.doGroupSetup): Keep track of what groups were selected when we redo group setup (#237708)
-rw-r--r--ChangeLog3
-rw-r--r--yuminstall.py8
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 73577b7ac..2bd55aad5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@
2007-05-17 Jeremy Katz <katzj@redhat.com>
+ * yuminstall.py (YumBackend.doGroupSetup): Keep track of what
+ groups were selected when we redo group setup (#237708)
+
* upgrade.py (upgrade_remove_blacklist): Add esound to the list
2007-05-16 Chris Lumens <clumens@redhat.com>
diff --git a/yuminstall.py b/yuminstall.py
index 4f7958975..7ead3106f 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -716,7 +716,13 @@ class YumBackend(AnacondaBackend):
self.ayum = AnacondaYum(anaconda)
def doGroupSetup(self):
+ # FIXME: this is a pretty ugly hack to make it so that we don't lose
+ # groups being selected (#237708)
+ sel = filter(lambda g: g.selected, self.ayum.comps.get_groups())
self.ayum.doGroupSetup()
+ # now we'll actually reselect groups..
+ map(lambda g: self.selectGroup(g.groupid), sel)
+
# FIXME: this is a bad hack to remove support for xen on xen (#179387)
if os.path.exists("/proc/xen"):
if self.ayum.comps._groups.has_key("virtualization"):
@@ -726,7 +732,7 @@ class YumBackend(AnacondaBackend):
if rpmUtils.arch.getBaseArch() == "i386" and "pae" not in iutil.cpuFeatureFlags():
if self.ayum.comps._groups.has_key("virtualization"):
del self.ayum.comps._groups["virtualization"]
-
+
def doRepoSetup(self, anaconda, thisrepo = None, fatalerrors = True):
# We want to call ayum.doRepoSetup one repo at a time so we have