Compare commits

..

No commits in common. "843712d7bfd56a8e0722805e6c4dc504623f1d63" and "83cc936c822f8a3da022df8230eea3f7691313b6" have entirely different histories.

2 changed files with 4 additions and 22 deletions

View file

@ -1,6 +1,3 @@
# https://manpages.debian.org/latest/apt/sources.list.5.de.html
# https://repolib.readthedocs.io/en/latest/deb822-format.html
```python ```python
{ {
'apt': { 'apt': {
@ -8,23 +5,8 @@
'apt-transport-https': {}, 'apt-transport-https': {},
}, },
'sources': { 'sources': {
'debian': { # place key under data/apt/keys/packages.cloud.google.com.{asc|gpg}
'urls': 'https://deb.debian.org/debian', 'deb https://packages.cloud.google.com/apt cloud-sdk main',
'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,5 +1,4 @@
# https://manpages.debian.org/latest/apt/sources.list.5.de.html # https://manpages.debian.org/jessie/apt/sources.list.5.de.html
# https://repolib.readthedocs.io/en/latest/deb822-format.html
from re import match from re import match
from glob import glob from glob import glob
@ -47,6 +46,7 @@ def render_apt_conf(section, depth=0):
# https://repolib.readthedocs.io/en/latest/deb822-format.html
def render_source(node, source_name): def render_source(node, source_name):
config = node.metadata.get(f'apt/sources/{source_name}') config = node.metadata.get(f'apt/sources/{source_name}')
lines = [] lines = []