Fixed cachedir function
This commit is contained in:
parent
3dff35d352
commit
f041e4c2f3
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue