Skip to content

Commit

Permalink
dist-installer-cli Debian testing ("trixie") support
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Aug 27, 2023
1 parent 72e1b78 commit 2dd7a46
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions usr/bin/dist-installer-cli
Expand Up @@ -1834,6 +1834,22 @@ install_unstable_repository_debian() {
return 0
fi

log notice "Adding APT pinning configuration to prefer testing over unstable."
file="/etc/apt/preferences.d/40-installer-dist-pinning"
echo "\
## This file was created by: $0
## It can be safely deleted if you know what you are doing.
Package: *
Pin: release a=testing
Pin-Priority: 700
Package: *
Pin: release a=unstable
Pin-Priority: 650
" | root_cmd tee "$file" ||
die 1 "${underline}APT Preferences Configuration Writer:${nounderline} Failed to write to file: '$file'"

log notice "Adding Unstable ${connection_type_debsource} repository to ${unstable_file_debsource}"
write_sources_debian "${unstable_url}" "${unstable_file_debsource}"
}
Expand Down

0 comments on commit 2dd7a46

Please sign in to comment.