Skip to content

Commit

Permalink
Modernize sources config templates for mageia
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Aug 28, 2023
1 parent a8641c5 commit 0b9fec6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions repos.d/rpm/mageia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
valid_till: {{valid_till}}
{% endif %}
sources:
# XXX: */backports_testing and */updates_testing not included, are these needed?
{% if version != 'cauldron' %}
- name: [ core/backports, core/release, core/updates, nonfree/backports, nonfree/release, nonfree/updates, tainted/backports, tainted/release, tainted/updates ]
{% else %}
# XXX: */backports, */backports_testing and */updates don't gave repomd.xml indexes
- name: [ core/release, nonfree/release, tainted/release ]
{% endif %}
# */backports_testing and */updates_testing not included, are these needed?
# cauldron noes not seem to have updates and backports subrepos, is this correct?
{% for sub1 in ['core', 'nonfree', 'tainted'] %}
{% for sub2 in (['release', 'updates', 'backports'] if version != 'cauldron' else ['release']) %}
- name: {{sub1}}/{{sub2}}
fetcher:
class: RepodataFetcher
url: 'https://mirrors.kernel.org/mageia/distrib/{{version}}/SRPMS/{source}/'
url: 'https://mirrors.kernel.org/mageia/distrib/{{version}}/SRPMS/{{sub1}}/{{sub2}}/'
parser:
class: RepodataParser
vertags: mga
subrepo: '{source}'
subrepo: {{sub1}}/{{sub2}}
{% endfor %}
{% endfor %}
repolinks:
- desc: Mageia home
url: https://www.mageia.org/en/
Expand Down

0 comments on commit 0b9fec6

Please sign in to comment.