Fixed cachedir function

pull/4420/head
Cristian Van Ee 2014-10-22 00:55:22 +02:00 committed by Matt Clay
parent b0a1baa981
commit e7146ed265
1 changed files with 4 additions and 4 deletions

View File

@ -152,10 +152,10 @@ def dnf_base(conf_file=None, cachedir=False):
if cachedir or os.geteuid() != 0:
if hasattr(my, 'setCacheDir'):
my.setCacheDir()
# else:
# cachedir = dnf.misc.getCacheDir()
# my.repos.setCacheDir(cachedir)
# my.conf.cache = 0
else:
cachedir = cachedir.dnf.Conf()
my.repos.setCacheDir(cachedir)
my.conf.cache = 0
return my