Compare commits
No commits in common. "843712d7bfd56a8e0722805e6c4dc504623f1d63" and "83cc936c822f8a3da022df8230eea3f7691313b6" have entirely different histories.
843712d7bf
...
83cc936c82
2 changed files with 4 additions and 22 deletions
|
@ -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
|
||||
{
|
||||
'apt': {
|
||||
|
@ -8,23 +5,8 @@
|
|||
'apt-transport-https': {},
|
||||
},
|
||||
'sources': {
|
||||
'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}',
|
||||
},
|
||||
# place key under data/apt/keys/packages.cloud.google.com.{asc|gpg}
|
||||
'deb https://packages.cloud.google.com/apt cloud-sdk main',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
# https://manpages.debian.org/latest/apt/sources.list.5.de.html
|
||||
# https://repolib.readthedocs.io/en/latest/deb822-format.html
|
||||
# https://manpages.debian.org/jessie/apt/sources.list.5.de.html
|
||||
|
||||
from re import match
|
||||
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):
|
||||
config = node.metadata.get(f'apt/sources/{source_name}')
|
||||
lines = []
|
||||
|
|
Loading…
Reference in a new issue