From eed8c052eb847f30960125a5eb43853dac87cabc Mon Sep 17 00:00:00 2001 From: Alessandro Lannocca Date: Sat, 18 May 2024 12:34:47 +0200 Subject: [PATCH] Final touch - simplification of conditional branch --- lib/functions/configuration/main-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/configuration/main-config.sh b/lib/functions/configuration/main-config.sh index 0b7f3d0c1cb0..241396be5c87 100644 --- a/lib/functions/configuration/main-config.sh +++ b/lib/functions/configuration/main-config.sh @@ -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