Skip to content

Commit

Permalink
Update mageia configs
Browse files Browse the repository at this point in the history
- Remove unneeded condition in template: cauldron _does_ have updates and backports subrepositories, though these are empty, so we can safely parse these unconditionally
- Update package links (fixes #1448)
- Always specify version as string for consistency
- Enable mageia 9
  • Loading branch information
AMDmi3 committed Nov 6, 2024
1 parent bd54179 commit 5fef895
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions repos.d/rpm/mageia.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
###########################################################################
# Mageia
#
# EoLs: https://www.mageia.org/en/support/
###########################################################################
{% macro mageia(version, valid_till=None, has_madb_entry=True) %}
{% macro mageia(version, valid_till=None) %}
- name: mageia_{{version}}
type: repository
desc: Mageia {{version}}
Expand All @@ -19,7 +17,7 @@
# */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']) %}
{% for sub2 in ['release', 'updates', 'backports'] %}
- name: {{sub1}}/{{sub2}}
fetcher:
class: RepodataFetcher
Expand All @@ -35,19 +33,14 @@
url: https://www.mageia.org/en/
- desc: Mageia App Db
url: https://madb.mageia.org/
{% if has_madb_entry %}
packagelinks:
- type: PACKAGE_HOMEPAGE
# Note: directories in this url work as CGI params:
# source=1 (show source packages)
# application=0 (show all packages, not only applications)
# release={{version}} (select release)
# name=XXX (package name)
url: 'https://madb.mageia.org/package/show/source/1/application/0/release/{{version}}/name/{srcname|quote}'
{% endif %}
url: 'https://madb.mageialinux-online.org/rpmshow?rpm={srcname|quote}&repo={{version}}-SRPMS-core-release&distribution={{version}}&architecture=x86_64&graphical=0'
groups: [ all, production, mageia, rpm ]
{% endmacro %}

{{ mageia(8, valid_till='2023-11-30') }}
{# mageia(9, valid_till='2025-03-31') #} # only enable as soon as madb entries appear
# https://www.mageia.org/en/support/
# https://en.wikipedia.org/wiki/Mageia#Version_history
{{ mageia('8', valid_till='2023-11-30') }}
{{ mageia('9', valid_till='2025-03-31') }}
{{ mageia('cauldron') }}

0 comments on commit 5fef895

Please sign in to comment.