apt-setup: yet another adjustment to fix missing updates.

This commit is contained in:
Ark74 2025-08-25 17:23:59 -06:00
parent 1f503fb465
commit 25926c10cb
3 changed files with 25 additions and 9 deletions

View file

@ -0,0 +1,17 @@
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
file="$1"
ROOT="${ROOT:-/target}"
LEGACY="$ROOT/etc/apt/sources.list"
SD="$ROOT/etc/apt/sources.list.d"
# If .sources exist, leave sources.list reduced only as a breadcrumb
if ls "$SD"/*.sources >/dev/null 2>&1; then
MSG="# Trisquel sources have moved to /etc/apt/sources.list.d/trisquel.sources"
printf '%s\n' "$MSG" > "$LEGACY"
printf '%s\n' "$MSG" > "$file"
fi
exit 0