Insert distribution into packages sources
This commit is contained in:
parent
af95999762
commit
6419fa917e
|
@ -165,6 +165,9 @@ def main():
|
||||||
# so we need to copy them somewhere else and restore them after the install.
|
# so we need to copy them somewhere else and restore them after the install.
|
||||||
for listpath in pathlib.Path('config/archives').glob('*.list.chroot'):
|
for listpath in pathlib.Path('config/archives').glob('*.list.chroot'):
|
||||||
run(["cp", str(listpath), f"config/includes.chroot/usr/local/share/target-sources/{listpath.name.removesuffix('.chroot')}"])
|
run(["cp", str(listpath), f"config/includes.chroot/usr/local/share/target-sources/{listpath.name.removesuffix('.chroot')}"])
|
||||||
|
# Insert distribution into source configs.
|
||||||
|
for sourcepath in pathlib.Path('config/includes.chroot/usr/local/share/target-sources').glob('*'):
|
||||||
|
edit_file(sourcepath, lambda s: s.replace("@DISTRIBUTION@", DISTRIBUTION))
|
||||||
elif args.variant == "contestant":
|
elif args.variant == "contestant":
|
||||||
# Insert root password into hook script.
|
# Insert root password into hook script.
|
||||||
edit_file("config/hooks/live/2010-contestant.hook.chroot",
|
edit_file("config/hooks/live/2010-contestant.hook.chroot",
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
Types: deb deb-src
|
Types: deb deb-src
|
||||||
URIs: http://deb.debian.org/debian
|
URIs: http://deb.debian.org/debian
|
||||||
Suites: bookworm bookworm-updates
|
Suites: @DISTRIBUTION@ @DISTRIBUTION@-updates
|
||||||
Components: main contrib non-free non-free-firmware
|
Components: main contrib non-free non-free-firmware
|
||||||
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
||||||
|
|
||||||
Types: deb deb-src
|
Types: deb deb-src
|
||||||
URIs: http://deb.debian.org/debian-security
|
URIs: http://deb.debian.org/debian-security
|
||||||
Suites: bookworm-security
|
Suites: @DISTRIBUTION@-security
|
||||||
Components: main contrib non-free non-free-firmware
|
Components: main contrib non-free non-free-firmware
|
||||||
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
||||||
|
|
Loading…
Reference in New Issue