Skip to content

Commit

Permalink
Final touch - simplification of conditional branch
Browse files Browse the repository at this point in the history
  • Loading branch information
alexl83 committed May 26, 2024
1 parent 44357d7 commit eed8c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions/configuration/main-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ function check_filesystem_compatibility_on_host() {
}

function pre_install_distribution_specific__disable_cnf_apt_hook(){
if [[ "${targeted_arch}" != "${host_arch}" && -f "${SDCARD}"/etc/apt/apt.conf.d/50command-not-found ]]; then #disable command-not-found (60% build-time saved under qemu)
if [[ $(dpkg --print-architecture) != "${ARCH}" && -f "${SDCARD}"/etc/apt/apt.conf.d/50command-not-found ]]; then #disable command-not-found (60% build-time saved under qemu)
display_alert "Disabling command-not-found during build-time to speed up image creation" "${BOARD}:${RELEASE}-${BRANCH}" "info"
run_host_command_logged mv "${SDCARD}"/etc/apt/apt.conf.d/50command-not-found "${SDCARD}"/etc/apt/apt.conf.d/50command-not-found.disabled
fi
Expand Down

0 comments on commit eed8c05

Please sign in to comment.