[PATCH rhel7-branch] Process excludedGroupList after packages and groups.
Brian C. Lane
bcl at redhat.com
Wed Aug 26 17:13:29 UTC 2015
On Wed, Aug 26, 2015 at 11:14:55AM -0400, Chris Lumens wrote:
> 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
Ack
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
More information about the anaconda-patches
mailing list