I think this needs a backport for EL7 as setting options for repos added with yum-config-manager by url don't work, presumably because they have dots in the fqdn portion of the url they were created from.
+++ This bug was initially created as a clone of Bug #1746349 +++
Description of problem:
The "--setopt" have a problem with repositories with dots in id. The option parser uses first dot as a delimiter.
Repository id may contain dots but option name can't. -> So, the last dot is delimiter and not the first one.
"--setopt=re.po.option=value " is parsed as repo id "re" and option "po.option". Correct result is repo id "re.po" and option "option".
--- Additional comment from Jaroslav Rohel on 2019-08-28 09:09:24 UTC ---
I made fix in upstream PR https://github.com/rpm-software-management/dnf/pull/1466 .
--- Additional comment from Jaroslav Rohel on 2019-08-28 09:11:53 UTC ---
The bug was catch during testing config-repo plugin https://bugzilla.redhat.com/show_bug.cgi?id=1702678 .
(In reply to Brian J. Murrell from comment #0)
> I think this needs a backport for EL7 as setting options for repos added
> with yum-config-manager by url don't work, presumably because they have dots
> in the fqdn portion of the url they were created from.
Brian, it's probably a different issue than in the bug 1746349.
yum-config-manager works OK with repos containing dots in their IDs/names
both on rhel7.7 - yum-utils-1.1.31-52.el7 and 7.6 - yum-utils-1.1.31-50.el7
# yum-config-manager --setopt='repo.with.dots.retries=5' --save
# cat /etc/yum.repos.d/repo.with.dots.repo
retries = 5
keepcache = 0
Could you please provide a reproducer for your issue?
Indeed, as Eva confirmed, yum *does* already parse such repoids correctly, see:
That being said, I'm closing this one as NOTABUG.
Original Fedora bug, for reference: