SSIA.
Well it is probably matter changing code in copr.py in dnf-plugins-core to read hostname from ~/.config/copr. Right now it is hardcoded.
There is: https://github.com/rpm-software-management/dnf-plugins-core/blob/master/plugins/copr.py#L91 So that should do it if /root/.config/copr is present. Can you confirm? I think we could remove: if self.copr_url != "https://copr.fedorainfracloud.org": print(_("Warning: we are using non-standard Copr URL '{}'.").format(self.copr_url))" but at the same time, some info about /root/.config/copr being read would be useful. This would be better placed in dnf configuration somewhere, I think.
Answered here: https://bugzilla.redhat.com/show_bug.cgi?id=1478208#c4
dnf-plugins-core feature proposal: https://github.com/rpm-software-management/dnf-plugins-core/pull/253 TODO list: - provide 'rhcopr' package with appropriate configuration - provide 'dnf copr fixup-config' command