mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 22:51:23 -07:00
Fixed cachedir function
This commit is contained in:
parent
b0a1baa981
commit
e7146ed265
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 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…
Add table
Add a link
Reference in a new issue