mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-03 18:43:50 +08:00
copr-builder: another rpkg-util v3+ fix
Try to set the defaults according to the /etc/rpkg.conf.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user