install_prereq: Fix dependency install on aarch64.

Fixes dependency solutions in install_prereq for Debian aarch64
platforms. install_prereq was attempting to forcibly install 32-bit
armhf packages due to the aptitude search for dependencies.

Resolves: #37
This commit is contained in:
Jason D. McCormick 2023-04-28 16:14:50 -04:00
parent b286d1cca2
commit fc57dca50d
1 changed files with 1 additions and 4 deletions

View File

@ -192,10 +192,7 @@ check_installed_debs() {
for pack in "$@" ; do
tocheck="${tocheck} ^${pack}$ ~P^${pack}$"
done
pkgs=$(aptitude -F '%c %p' search ${tocheck} 2>/dev/null | awk '/^p/{print $2}')
if [ ${#pkgs} -ne 0 ]; then
echo $pkgs | sed -r -e "s/ ?[^ :]+:i386//g"
fi
aptitude -F '%c %p' search $tocheck 2>/dev/null | awk '/^p/{print $2}' | grep -vF :
}
# parsing the output of yum is close to impossible.