[rhel6-branch] [PATCH] Enable all addon repos when doing upgrade

Jesse Keating jkeating at redhat.com
Thu Jul 26 18:20:43 UTC 2012


On 07/26/2012 02:25 AM, Vratislav Podzimek wrote:
> We need to enable all addon repos so that packages from them get updated.
> Fortunately, yum ignores mandatory and default packages of the repos when
> doing update and no additional packages are installed because of the added
> repos.
>
> Resolves: rhbz#746925
> ---
>   yuminstall.py |    6 ++++++
>   1 file changed, 6 insertions(+)
>
> diff --git a/yuminstall.py b/yuminstall.py
> index 61a0b65..20802b1 100644
> --- a/yuminstall.py
> +++ b/yuminstall.py
> @@ -1296,6 +1296,12 @@ debuglevel=6
>           self.ayum = AnacondaYum(anaconda)
>           self.ayum.setup()
>
> +        if anaconda.id.getUpgrade():
> +            # If we are doing an upgrade, we need to enable all repos,
> +            # so that packages from them get updated.
> +            for repo in self.ayum.repos.repos.itervalues():
> +                repo.enable()
> +
>           self.ayum.doMacros()
>
>           # If any enabled repositories require networking, go ahead and bring
>

ACK

-- 
Jesse Keating
Fedora -- FreedomĀ² is a feature!




More information about the anaconda-patches mailing list