Bug 1310116 - [RFE] dnf: make the 'dnf enable USER/COPR' work with internal copr
Summary: [RFE] dnf: make the 'dnf enable USER/COPR' work with internal copr
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Internal Copr
Classification: Internal
Component: client
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Raiskup
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-19 14:01 UTC by Pavel Raiskup
Modified: 2019-05-22 12:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-22 12:55:19 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1478208 0 unspecified CLOSED [rfe] Support for multiple copr instances 2021-02-22 00:41:40 UTC

Internal Links: 1478208

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


Note You need to log in before you can comment on or make changes to this bug.