Skip to content

Commit

Permalink
Add support for archived debian versions, archive debian 10
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Apr 16, 2024
1 parent 9f2b21d commit 265a60a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions repos.d/deb/debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# Debian
###########################################################################

{% macro debian(version, codename, minpackages, valid_till=None, backports=True, backports_sloppy=True, packages_page=True, buildd_page=True) %}
{% macro debian(version, codename, minpackages, valid_till=None, backports=True, backports_sloppy=True, packages_page=True, buildd_page=True, archived=False) %}
{% set sortversion = '0' + (version|string) if version < 10 else version %}
{% set subrepos2 = ['main', 'contrib', 'non-free'] if version < 12 else ['main', 'contrib', 'non-free', 'non-free-firmware'] %}
{% set host = 'archive.debian.org' if archived else 'ftp.debian.org' %}

- name: debian_{{version}}
sortname: debian_{{sortversion}}
Expand All @@ -24,7 +25,7 @@
- name: {{sub1}}/{{sub2}}
fetcher:
class: FileFetcher
url: 'https://ftp.debian.org/debian/dists/{{sub1}}/{{sub2}}/source/Sources.xz'
url: 'https://{{host}}/debian/dists/{{sub1}}/{{sub2}}/source/Sources.xz'
compression: xz
parser:
class: DebianSourcesParser
Expand Down Expand Up @@ -85,7 +86,7 @@
- name: {{sub1}}/{{sub2}}
fetcher:
class: FileFetcher
url: 'https://ftp.debian.org/debian/dists/{{sub1}}/{{sub2}}/source/Sources.xz'
url: 'https://{{host}}/debian/dists/{{sub1}}/{{sub2}}/source/Sources.xz'
compression: xz
parser:
class: DebianSourcesParser
Expand Down Expand Up @@ -136,7 +137,7 @@
- name: {{sub1}}/{{sub2}}
fetcher:
class: FileFetcher
url: 'https://ftp.debian.org/debian/dists/{{sub1}}/{{sub2}}/source/Sources.xz'
url: 'https://{{host}}/debian/dists/{{sub1}}/{{sub2}}/source/Sources.xz'
compression: xz
parser:
class: DebianSourcesParser
Expand Down Expand Up @@ -167,7 +168,7 @@
# valid_till: https://wiki.debian.org/LTS
# pages: https://buildd.debian.org/status/package.php?p=0ad-data&suite=jessie
# list of repos and backports https://packages.debian.org/stable/
{{ debian(10, 'buster', minpackages=28000, valid_till='2024-06-30') }}
{{ debian(10, 'buster', minpackages=28000, valid_till='2024-06-30', archived=True) }}
{{ debian(11, 'bullseye', minpackages=30000, valid_till='2026-06-30') }}
{{ debian(12, 'bookworm', minpackages=30000, valid_till='2028-06-30', backports_sloppy=False) }}
{{ debian(13, 'trixie', minpackages=30000, packages_page=False, backports=False, backports_sloppy=False) }}
Expand Down

0 comments on commit 265a60a

Please sign in to comment.