[Yum-devel] [PATCH] Copy quick en/dis able to repos when repo is added

James Antill james at and.org
Tue Jul 21 13:58:49 UTC 2009


---
 yum/repos.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/yum/repos.py b/yum/repos.py
index ac3e197..32d3426 100644
--- a/yum/repos.py
+++ b/yum/repos.py
@@ -97,6 +97,7 @@ class RepoStorage:
             raise Errors.DuplicateRepoError, 'Repository %s is listed more than once in the configuration' % (repoobj.id)
         self.repos[repoobj.id] = repoobj
         if hasattr(repoobj, 'quick_enable_disable'):
+            self.quick_enable_disable.update(repoobj.quick_enable_disable)
             repoobj.quick_enable_disable = self.quick_enable_disable
         else:
             self._cache_enabled_repos = None
-- 
1.6.2.5



More information about the Yum-devel mailing list