summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-02-27 19:42:32 -0500
committerJeremy Katz <katzj@redhat.com>2008-02-27 20:20:35 -0500
commit58be2961c037d93016d80792e770aa52c190ff54 (patch)
treef2c5805114a7e359fad36954553c471455f74dd1 /yuminstall.py
parente04c5112a8c784a0d831df3ca9aa7635c39a1693 (diff)
downloadanaconda-58be2961c037d93016d80792e770aa52c190ff54.tar.gz
anaconda-58be2961c037d93016d80792e770aa52c190ff54.tar.xz
anaconda-58be2961c037d93016d80792e770aa52c190ff54.zip
Ensure that group info for txmbrs is accurate after we reset
When adding new repos, we reset the comps data so that it can take into account the new groups (or new packages in groups). This, though, ends up leaving txmbrs with duplicate items in their group list. Let's uniquify the list to avoid problems when later deselecting a group
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/yuminstall.py b/yuminstall.py
index b656b17ac..9b591e9d6 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -829,6 +829,12 @@ class YumBackend(AnacondaBackend):
# now we'll actually reselect groups..
map(lambda g: self.selectGroup(g.groupid), sel)
+ # and now, to add to the hacks, we'll make sure that packages don't
+ # have groups double-listed. this avoids problems with deselecting
+ # groups later
+ for txmbr in self.ayum.tsInfo.getMembers():
+ txmbr.groups = yum.misc.unique(txmbr.groups)
+
# 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"):