Fixed cachedir function

reviewable/pr18780/r1
Cristian Van Ee 10 years ago
parent 3dff35d352
commit f041e4c2f3

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

Loading…
Cancel
Save