Skip to content

Commit

Permalink
Don't add all grps in the installed evgrp, just those that belong.
Browse files Browse the repository at this point in the history
  • Loading branch information
james-antill committed Dec 17, 2013
1 parent 0a07500 commit c8f1647
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion yum/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4002,7 +4002,15 @@ def selectEnvironment(self, evgrpid, group_package_types=[],
grps.add(grpid)
if evgrp.environmentid in self.igroups.environments:
ievgrp = self.igroups.environments[evgrp.environmentid]
grps.update(ievgrp.grp_names)
# Add groups from the installed evgrp, for Eg. installed
# only evgrps.
for grp_name in ievgrp.grp_names:
if grp_name not in self.igroups.groups:
continue
grp_evgrpid = self.igroups.groups[grp_name].environment
if grp_evgrpid != evgrp.environmentid:
continue
grps.add(grp_name)
else:
self.igroups.add_environment(evgrp.environmentid,
evgrp.allgroups)
Expand Down

0 comments on commit c8f1647

Please sign in to comment.