fix(setup ghc cross compiler): call `__termux_haskell_register_packages` after cross ghc setup

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
This commit is contained in:
Aditya Alok 2022-03-16 00:59:51 +05:30 committed by Henrik Grimler
parent 0866d7b388
commit 52d7cc88d2
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
1 changed files with 2 additions and 2 deletions

View File

@ -124,10 +124,9 @@ termux_setup_ghc_cross_compiler() {
local ON_DEVICE_GHC_RUNTIME="${TERMUX_COMMON_CACHEDIR}/${GHC_PREFIX}-runtime"
export PATH="${ON_DEVICE_GHC_RUNTIME}/bin:${PATH}"
__termux_haskell_register_packages
if [[ -d "${ON_DEVICE_GHC_RUNTIME}" ]]; then
__termux_haskell_setup_build_script "${ON_DEVICE_GHC_RUNTIME}"
__termux_haskell_register_packages
return
fi
@ -136,6 +135,7 @@ termux_setup_ghc_cross_compiler() {
ln -sf "${TERMUX_PREFIX}/bin/${tool}" "${ON_DEVICE_GHC_RUNTIME}/bin/termux-${tool}"
done
__termux_haskell_setup_build_script "${ON_DEVICE_GHC_RUNTIME}"
__termux_haskell_register_packages
fi
fi
}