Skip to content

Commit

Permalink
get_dnf5_cmd: Do not set reposdir and config_file_path
Browse files Browse the repository at this point in the history
They are taken from installroot by default.
Setting it explicitly via the CLI will hide the default behavior.
And it changes the behavior if dnf.conf is not present.
  • Loading branch information
jrohel authored and pkratoch committed Mar 8, 2024
1 parent addcc68 commit ef08f52
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dnf-behave-tests/dnf/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@ def get_dnf5_cmd(self, context):
for key,value in setopts.items():
result.append("--setopt={0}={1}".format(key, value))

result.append("--setopt=reposdir=%s" % self.installroot + "/etc/yum.repos.d")
result.append("--setopt=config_file_path=%s" % self.installroot + "/etc/dnf/dnf.conf")
result.append("--setopt=cachedir=%s" % self.installroot + "/var/cache/dnf")

return result
Expand Down

0 comments on commit ef08f52

Please sign in to comment.