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
(cherry picked from commit fc57dca50d
)
This commit is contained in:
parent
714b9e8b21
commit
f86f5fd809
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue