apt-selection: mark local repositories as trusted

Without this, apt won't like local repositories.
This commit is contained in:
Cyril Brulebois 2023-01-23 19:30:42 +01:00
parent f2a4a832a2
commit cc53129b15
1 changed files with 2 additions and 2 deletions

View File

@ -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