From 58be2961c037d93016d80792e770aa52c190ff54 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Wed, 27 Feb 2008 19:42:32 -0500 Subject: 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 --- yuminstall.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'yuminstall.py') 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"): -- cgit