Compare commits

...

2 commits

Author SHA1 Message Date
843712d7bf
apt README 2023-08-01 11:58:01 +02:00
4aa8a18b4f
comment 2023-08-01 10:48:44 +02:00
2 changed files with 22 additions and 4 deletions

View file

@ -1,3 +1,6 @@
# https://manpages.debian.org/latest/apt/sources.list.5.de.html
# https://repolib.readthedocs.io/en/latest/deb822-format.html
```python
{
'apt': {
@ -5,8 +8,23 @@
'apt-transport-https': {},
},
'sources': {
# place key under data/apt/keys/packages.cloud.google.com.{asc|gpg}
'deb https://packages.cloud.google.com/apt cloud-sdk main',
'debian': {
'urls': 'https://deb.debian.org/debian',
'suites': { # at least one
'{codename}',
'{codename}-updates',
'{codename}-backports',
},
'components': { # optional
'main',
'contrib',
'non-frese',
},
# key:
# - optional, defaults to source name (`debian` in this example)
# - place key under data/apt/keys/debian-12.{asc|gpg}
'key': 'debian-{version}',
},
},
},
}

View file

@ -1,4 +1,5 @@
# https://manpages.debian.org/jessie/apt/sources.list.5.de.html
# https://manpages.debian.org/latest/apt/sources.list.5.de.html
# https://repolib.readthedocs.io/en/latest/deb822-format.html
from re import match
from glob import glob
@ -46,7 +47,6 @@ def render_apt_conf(section, depth=0):
# https://repolib.readthedocs.io/en/latest/deb822-format.html
def render_source(node, source_name):
config = node.metadata.get(f'apt/sources/{source_name}')
lines = []