[PATCH rhel7-branch] Process excludedGroupList after packages and groups.

Chris Lumens clumens at redhat.com
Wed Aug 26 15:14:55 UTC 2015


The order we had things in was causing the excluded group to get
removed, and then packages to get installed afterwards.  This is clearly
the wrong order and had the effect of the conflicts groups not working
like they are supposed to.

Resolves: rhbz#1249036
---
 pyanaconda/packaging/yumpayload.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index a21ad16..ff7ef14 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -1308,12 +1308,6 @@ reposdir=%s
             except NoSuchGroup as e:
                 self._handleMissing(e)
 
-        for group in self.data.packages.excludedGroupList:
-            try:
-                self._deselectYumGroup(group.name)
-            except NoSuchGroup as e:
-                self._handleMissing(e)
-
         for package in self.data.packages.packageList:
             try:
                 self._selectYumPackage(package)
@@ -1323,6 +1317,12 @@ reposdir=%s
         for package in self.data.packages.excludedList:
             self._deselectYumPackage(package)
 
+        for group in self.data.packages.excludedGroupList:
+            try:
+                self._deselectYumGroup(group.name)
+            except NoSuchGroup as e:
+                self._handleMissing(e)
+
         self._select_kernel_package()
         self.selectRequiredPackages()
 
-- 
2.4.3



More information about the anaconda-patches mailing list