Bug 1310116

Summary: [RFE] dnf: make the 'dnf enable USER/COPR' work with internal copr
Product: [Internal] Red Hat Internal Copr Reporter: Pavel Raiskup <praiskup>
Component: clientAssignee: Pavel Raiskup <praiskup>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jpopelka, msuchy, ttomecek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-22 12:55:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavel Raiskup 2016-02-19 14:01:13 UTC
SSIA.

Comment 1 Miroslav Suchý 2016-03-18 19:58:50 UTC
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.

Comment 2 clime 2018-01-08 09:49:33 UTC
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.

Comment 3 Pavel Raiskup 2018-01-08 10:24:55 UTC
Answered here:
https://bugzilla.redhat.com/show_bug.cgi?id=1478208#c4

Comment 4 Pavel Raiskup 2018-09-18 09:12:13 UTC
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