copr-builder: another rpkg-util v3+ fix
Try to set the defaults according to the /etc/rpkg.conf.
This commit is contained in:
parent
d7a2f5df2a
commit
caadae5243
1 changed files with 9 additions and 1 deletions
|
@ -1,10 +1,12 @@
|
|||
{% if copr_builder_fedora_version == 34 %}
|
||||
# rpkg-util v2
|
||||
|
||||
[main]
|
||||
frontend_url = {{ frontend_base_url }}
|
||||
distgit_lookaside_url = {scheme}://{netloc}/repo/pkgs/%(ns1)s/%(name)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s
|
||||
distgit_clone_url = {scheme}://{netloc}/%(module)s
|
||||
rpm_vendor_copr_name = {{ rpm_vendor_copr_name }}
|
||||
|
||||
{% if copr_builder_fedora_version == 34 %}
|
||||
[distgit0]
|
||||
distgit_hostname_pattern = src.fedoraproject.org
|
||||
distgit_lookaside_url = https://src.fedoraproject.org/repo/pkgs/%(ns1)s/%(name)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s
|
||||
|
@ -28,6 +30,12 @@ distgit_clone_url = https://src.stg.fedoraproject.org/%(module)s
|
|||
{% else %}
|
||||
# rpkg-util v3+
|
||||
|
||||
[main]
|
||||
frontend_url = {{ frontend_base_url }}
|
||||
distgit_lookaside_url = https://${git_props:remote_netloc}/repo/pkgs/%(repo_path)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s
|
||||
distgit_clone_url = {scheme}://{netloc}/%(repo_path)s
|
||||
rpm_vendor_copr_name = {{ rpm_vendor_copr_name }}
|
||||
|
||||
[distgit0]
|
||||
distgit_hostname_pattern = src.fedoraproject.org
|
||||
distgit_lookaside_url = https://src.fedoraproject.org/repo/pkgs/%(repo_path)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue