# HG changeset patch # User drewp@bigasterisk.com # Date 1726542600 25200 # Node ID f17d9925a2aab52006f12845d85ef72ea42d386e # Parent 5449b2aea2df8a688d80ca50836a7d96e291c629 ubuntu update changed sources a bit diff -r 5449b2aea2df -r f17d9925a2aa apt.py --- a/apt.py Sat Aug 24 15:07:34 2024 -0700 +++ b/apt.py Mon Sep 16 20:10:00 2024 -0700 @@ -60,7 +60,7 @@ dir / 'raspi.list', ]): found = map(Path, cast(str, host.get_fact(FindFiles, dir, quote_path=True))) - if set(found) - set(known): + if set(found) - set(known) - {dir / 'ubuntu.sources'}: raise SystemExit(f"new files in {host.name} /etc/apt/sources.list.d/ - please remove") for f in known: files.file(path=f, present=False) @@ -72,6 +72,9 @@ files.template(src='templates/sources.list.j2', dest='/etc/apt/sources.list') + if 'big' in host.groups or 'laptop' in host.groups or 'hosted' in host.groups: + files.template(src='templates/ubuntu.sources.j2', dest='/etc/apt/sources.list.d/ubuntu.sources') + clear_known_sources_files() apt.packages(update=True, cache_time=86400, diff -r 5449b2aea2df -r f17d9925a2aa package_lists.py --- a/package_lists.py Sat Aug 24 15:07:34 2024 -0700 +++ b/package_lists.py Mon Sep 16 20:10:00 2024 -0700 @@ -161,7 +161,6 @@ 'cmake', 'code', 'cups', - 'darcs', 'dclock', 'dolphin', 'eog', diff -r 5449b2aea2df -r f17d9925a2aa templates/sources.list.j2 --- a/templates/sources.list.j2 Sat Aug 24 15:07:34 2024 -0700 +++ b/templates/sources.list.j2 Mon Sep 16 20:10:00 2024 -0700 @@ -16,19 +16,6 @@ deb [signed-by=/etc/apt/keyrings/coral.gpg] https://packages.cloud.google.com/apt coral-edgetpu-stable main {% endif %} -{% if 'big' in host.groups or 'laptop' in host.groups or 'hosted' in host.groups %} -deb http://us.archive.ubuntu.com/ubuntu mantic main restricted -deb http://us.archive.ubuntu.com/ubuntu mantic multiverse -deb http://us.archive.ubuntu.com/ubuntu mantic universe -deb http://us.archive.ubuntu.com/ubuntu mantic-backports main restricted universe multiverse -deb http://us.archive.ubuntu.com/ubuntu mantic-security main restricted -deb http://us.archive.ubuntu.com/ubuntu mantic-security multiverse -deb http://us.archive.ubuntu.com/ubuntu mantic-security universe -deb http://us.archive.ubuntu.com/ubuntu mantic-updates main restricted -deb http://us.archive.ubuntu.com/ubuntu mantic-updates multiverse -deb http://us.archive.ubuntu.com/ubuntu mantic-updates universe -{% endif %} - {% if host.name == 'pipe' %} # seems stuck on jammy since http://deb.odroid.in/n2/ and https://wiki.odroid.com/odroid-n2/os_images/ubuntu don't have anything newer (2023-12-28) deb [signed-by=/etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg] http://archive.canonical.com/ubuntu jammy partner