|
||
|
||
|
||
|
||
|
||
clime commented 5 years ago | ||
clime commented 5 years ago I think using | ||
praiskup commented 5 years ago Please don't delay this even more. I must say that we are getting to far in this PR, and in https://github.com/rpm-software-management/dnf-plugins-core/pull/253#discussion_r209524744 as well. The repo_id as @dturecek proposes is unique enough to not collide across copr instances. And if there are any other mostly theoretical doubts we should implement everything in dnf copr plugin, not here. That said -- dnf copr plugin should be responsible for generating the repo ID string based on the hub configuration file (and the repo ID we generate here should That said -- please don't expect repo ID has any other property then uniqueness. | ||
clime commented 5 years ago Also have a look if we can't just use 'PUBLIC_COPR_BASE_URL' instead of introducing the new variable | ||
clime commented 5 years ago
Adding or not adding | ||
praiskup commented 5 years ago Adding | ||
clime commented 5 years ago Sorry but you are just making mess here and in the related PR as well. copr dnf repos are recognized by repo ID constant prefix. That prefix should ideally be | ||
praiskup commented 5 years ago As always, lack of experience and respect. I'm afraid the more arrogance we allow, the more @clime thinks is appropriate. All I can do here: | ||
praiskup commented 5 years ago It's not place to put hacks. Sorry, I can not edit comments (pagure strikes again). | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
This PR changes the format of repo IDs to copr:<hub>:<user>:<project>
so that it's clear from the ID to which Copr hub the repo file belongs. This change is in addition to the changes in the dnf plugin.
PUBLIC_COPR_HOSTNAME
can contain port currently as well. It's e.g. used here: https://pagure.io/copr/copr/blob/master/f/frontend/coprs_frontend/coprs/templates/api.html#_37 and I typically putlocalhost:8080
there on my machine so that I get api config rendered correctly for my localhost instance running on 8080. Could you, please, as part of this PR provide another config value e.g.PUBLIC_COPR_NETLOC
(https://docs.python.org/3/library/urllib.parse.html?highlight=urljoin#url-parsing) that would be used where the whole network location is expected to be? This means you should scan the code forPUBLIC_COPR_HOSTNAME
string and replace that withPUBLIC_COPR_NETLOC
where appropriate. You can also do it so that ifPUBLIC_COPR_NETLOC
is unset, you can set it toPUBLIC_COPR_HOSTNAME
infrontend/coprs_frontend/coprs/__init__.py
so that we have a fallback value for it.