From cc53129b15506c6d8f7a3efa6899751ca2531e06 Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Mon, 23 Jan 2023 19:30:42 +0100 Subject: [PATCH] apt-selection: mark local repositories as trusted Without this, apt won't like local repositories. --- tools/apt-selection | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/apt-selection b/tools/apt-selection index 74125ba8..b4e9b1d4 100755 --- a/tools/apt-selection +++ b/tools/apt-selection @@ -89,7 +89,7 @@ if [ ! -e "$APTTMP/$THIS_PKGSET/apt/sources.list" ]; then # Local packages ... if [ -n "$LOCAL" ]; then - echo "$ADEB file:${LOCALDEBS:-$MIRROR} $CODENAME local" \ + echo "$ADEB [trusted=yes] file:${LOCALDEBS:-$MIRROR} $CODENAME local" \ >> $APTTMP/$THIS_PKGSET/apt/sources.list fi @@ -121,7 +121,7 @@ if [ ! -e "$APTTMP/$THIS_PKGSET/apt/sources.list" ]; then >> $APTTMP/$THIS_PKGSET/apt/sources.list fi if [ -n "$LOCAL" ] && [ -e "${LOCALDEBS:-$MIRROR}/dists/$DI_CODENAME/local/debian-installer" ]; then - echo "$ADEB file:${LOCALDEBS:-$MIRROR} $DI_CODENAME local/debian-installer" \ + echo "$ADEB [trusted=yes] file:${LOCALDEBS:-$MIRROR} $DI_CODENAME local/debian-installer" \ >> $APTTMP/$THIS_PKGSET/apt/sources.list fi fi