[Yum-devel] [PATCH] Fix a (likely) typo in writeRawRepoFile()

Zdeněk Pavlas zpavlas at redhat.com
Tue Jul 12 08:15:22 UTC 2011


Fixes a traceback when enabling/disabling repositories in the desktop.
---
 yum/config.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/yum/config.py b/yum/config.py
index d09511f..cb7ed57 100644
--- a/yum/config.py
+++ b/yum/config.py
@@ -1069,7 +1069,7 @@ def writeRawRepoFile(repo,only=None):
         #  If the value is the same, but just interpreted ... when we don't want
         # to keep the interpreted values.
         if (name in ini[section_id] and
-            ovalue == varReplace(ini[section_id][name], yumvar)):
+            ovalue == varReplace(ini[section_id][name], repo.yumvar)):
             ovalue = ini[section_id][name]
 
         if name not in cfgOptions and option.default == value:
-- 
1.7.4.4



More information about the Yum-devel mailing list