client/rhel/yum-rhn-plugin/rhnplugin.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 61548de7b576703ffea3a03998eca3a00ada0e6f
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Tue Jul 12 17:33:17 2011 +0200
Fixing sloppy coding.
Addressing
File "/usr/share/yum-plugins/rhnplugin.py", line 178, in
prereposetup_hook
cachefile_content += already_exists_repos.id + "\n"
<type 'exceptions.AttributeError'>: 'list' object has no
attribute 'id'
diff --git a/client/rhel/yum-rhn-plugin/rhnplugin.py
b/client/rhel/yum-rhn-plugin/rhnplugin.py
index 8660cf5..66e7a0e 100644
--- a/client/rhel/yum-rhn-plugin/rhnplugin.py
+++ b/client/rhel/yum-rhn-plugin/rhnplugin.py
@@ -175,7 +175,7 @@ def prereposetup_hook(conduit):
if type(already_exists_repos[0]) == type(repo): # repo is type of
RhnRepo
# repo has been already initialized
if create_cache_even_second_time:
- cachefile_content += already_exists_repos.id + "\n"
+ cachefile_content += already_exists_repos[0].id +
"\n"
continue
else: # YumRepository from _init, made for caching
callback = already_exists_repos[0].callback
Show replies by date