Skip to content

Commit

Permalink
add --allow-downgrades for apt-get
Browse files Browse the repository at this point in the history
  • Loading branch information
BPI-SINOVOIP committed Aug 23, 2024
1 parent ef0bd82 commit c26c882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions/rootfs/apt-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function install_deb_chroot() {
declare -g if_error_detail_message="Installation of $install_target failed ${BOARD} ${RELEASE} ${BUILD_DESKTOP} ${LINUXFAMILY}"
declare -a extra_apt_envs=()
extra_apt_envs+=("ARMBIAN_IMAGE_BUILD_BOOTFS_TYPE=${BOOTFS_TYPE:-"unset"}") # used by package postinst scripts to bevahe
DONT_MAINTAIN_APT_CACHE="yes" chroot_sdcard_apt_get --no-install-recommends install "${install_target}" # don't auto-maintain apt cache when installing from packages.
DONT_MAINTAIN_APT_CACHE="yes" chroot_sdcard_apt_get --allow-downgrades --no-install-recommends install "${install_target}" # don't auto-maintain apt cache when installing from packages.
unset extra_apt_envs

# IMPORTANT! Do not use short-circuit above as last statement in a function, since it determines the result of the function.
Expand Down

0 comments on commit c26c882

Please sign in to comment.