client/rhel/yum-rhn-plugin/rhnplugin.py | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 301b5e92d84c100db9649be36cdae6248857fc94
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Mon Aug 1 16:22:58 2011 +0200
701189 - make sure cachedir exists
diff --git a/client/rhel/yum-rhn-plugin/rhnplugin.py
b/client/rhel/yum-rhn-plugin/rhnplugin.py
index 9ed2edc..9afa8d2 100644
--- a/client/rhel/yum-rhn-plugin/rhnplugin.py
+++ b/client/rhel/yum-rhn-plugin/rhnplugin.py
@@ -158,6 +158,8 @@ def init_hook(conduit):
cachefilename = os.path.join(cachedir, cachedRHNReposFile)
try:
+ if not os.path.exists(cachedir):
+ os.makedirs(cachedir, 0755)
cachefile = open(cachefilename, 'w')
except:
cachefile = None
Show replies by date