We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c7442c commit d5c627bCopy full SHA for d5c627b
python/setup/fedora.py
@@ -37,7 +37,8 @@ def dnf_add_repo(repo_url):
37
# config-manager does not support --add-repo with dnf5, which is the
38
# default in Fedora 41 now.
39
# https://github.com/rpm-software-management/dnf5/issues/1537
40
- if get_fedora_version() >= 41:
+ # Done in an agnostic way because this is shared with AlmaLinux.
41
+ if Path(shutil.which('dnf')).resolve().name.endswith('5'):
42
local_dst = Path('/etc/yum.repos.d', repo_url.rsplit('/', 1)[1])
43
lib.utils.curl(repo_url, output=local_dst)
44
else:
0 commit comments