client/rhel/yum-rhn-plugin/rhnplugin.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit b12837c8d1e45a6de46bd02fff10ed4fefac5bc7
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Mar 28 13:55:11 2011 +0200
add repo name in case you have old format of rhnplugin.repos
diff --git a/client/rhel/yum-rhn-plugin/rhnplugin.py
b/client/rhel/yum-rhn-plugin/rhnplugin.py
index 3ead8a1..c803bde 100644
--- a/client/rhel/yum-rhn-plugin/rhnplugin.py
+++ b/client/rhel/yum-rhn-plugin/rhnplugin.py
@@ -63,7 +63,10 @@ def init_hook(conduit):
cachefile = open(cachefilename, 'r')
repolist = [ line.rstrip().split(' ', 1) for line in
cachefile.readlines()]
cachefile.close()
- for (repoid, reponame) in repolist:
+ for repoitem in repolist:
+ if len(repo_item) == 1:
+ repo_item.append('')
+ (repoid, reponame) = repo_item
repodir = os.path.join(cachedir, repoid)
if os.path.isdir(repodir) and os.path.isfile(
os.path.join(repodir, 'repodata',
'repomd.xml')):
commit 972ff62b3050f89217b414b6927e2c492c54604b
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Mar 28 13:13:50 2011 +0200
691283 - create persistdir in _repos_persistdir instead of PWD
diff --git a/client/rhel/yum-rhn-plugin/rhnplugin.py
b/client/rhel/yum-rhn-plugin/rhnplugin.py
index 4fd6de7..3ead8a1 100644
--- a/client/rhel/yum-rhn-plugin/rhnplugin.py
+++ b/client/rhel/yum-rhn-plugin/rhnplugin.py
@@ -166,6 +166,7 @@ def prereposetup_hook(conduit):
repo.sslcacert = sslcacert
repo.enablegroups = enablegroups
repo.metadata_expire = metadata_expire
+ repo.base_persistdir = conduit.getConf()._repos_persistdir
repoOptions = getRHNRepoOptions(conduit, repo.id)
if repoOptions:
for o in repoOptions:
Show replies by date