[PATCH] Actually add the new definition of an already-defined repo.

Vratislav Podzimek vpodzime at redhat.com
Tue Jan 20 17:26:21 UTC 2015


On Tue, 2015-01-20 at 11:33 -0500, Chris Lumens wrote:
> I left these two lines out of my previous patch.
> ---
>  pyanaconda/packaging/dnfpayload.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/pyanaconda/packaging/dnfpayload.py b/pyanaconda/packaging/dnfpayload.py
> index d0eb90e..0fd3ac3 100644
> --- a/pyanaconda/packaging/dnfpayload.py
> +++ b/pyanaconda/packaging/dnfpayload.py
> @@ -240,6 +240,8 @@ class DNFPayload(packaging.PackagePayload):
>                  self._base.repos[repo.id].enable()
>              else:
>                  self._base.repos.pop(repo.id)
> +                self._base.repos.add(repo)
> +                repo.enable()
>          # If the repo's not already known, we've got to add it.
>          else:
>              self._base.repos.add(repo)
Makes sense to me. ACK.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list