mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Fixed cachedir function
This commit is contained in:
committed by
Matt Clay
parent
b0a1baa981
commit
e7146ed265
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user