summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-06-27 15:59:35 +0000
committerJeremy Katz <katzj@redhat.com>2007-06-27 15:59:35 +0000
commit2e2dbbc5552e349692ff73c986be16c54558be8b (patch)
treef61de7657f13ecaa857afeeb222fb7af9e616623 /yuminstall.py
parent23305f657af9af7fd2f87ae7f2188bf3cfaa75ee (diff)
downloadanaconda-2e2dbbc5552e349692ff73c986be16c54558be8b.tar.gz
anaconda-2e2dbbc5552e349692ff73c986be16c54558be8b.tar.xz
anaconda-2e2dbbc5552e349692ff73c986be16c54558be8b.zip
2007-06-27 Jeremy Katz <katzj@redhat.com>
* yuminstall.py (AnacondaYumRepo.dirSetup): Fix for yum 3.2.1 not making header dir any more since we still need headers (#245918)
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/yuminstall.py b/yuminstall.py
index 518f2776b..14cef34b4 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -242,6 +242,11 @@ class AnacondaYumRepo(YumRepository):
self.setAttribute('pkgdir', root)
self.setAttribute('hdrdir', '/tmp/cache/headers')
+ def dirSetup(self):
+ YumRepository.dirSetup(self)
+ if not os.path.isdir(self.hdrdir):
+ os.makedirs(self.hdrdir, mode=0755)
+
#XXX: FIXME duplicated from YumRepository due to namespacing
def __headersListFromDict(self):
"""Convert our dict of headers to a list of 2-tuples for urlgrabber."""