Fix make_dnf_dirs
It was chopping off an extra directory level due to realpath removing
the trailing / from the paths when they are setup.
(cherry picked from commit 23f4b2a3ec
)
This commit is contained in:
parent
f88fbc3fca
commit
a283ec9582
@ -75,8 +75,11 @@ def make_dnf_dirs(conf):
|
||||
:returns: None
|
||||
"""
|
||||
for p in ["dnf_conf", "repo_dir", "cache_dir", "dnf_root"]:
|
||||
p_dir = os.path.dirname(conf.get("composer", p))
|
||||
if not os.path.exists(p_dir):
|
||||
p_dir = os.path.abspath(conf.get("composer", p))
|
||||
if p == "dnf_conf":
|
||||
p_dir = os.path.dirname(p_dir)
|
||||
|
||||
if not os.path.isdir(p_dir):
|
||||
os.makedirs(p_dir)
|
||||
|
||||
def make_queue_dirs(conf, gid):
|
||||
|
Loading…
Reference in New Issue
Block a user