Skip to content

Commit

Permalink
install_prereq: Fix dependency install on aarch64.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jxmx committed Aug 14, 2023
1 parent eabf036 commit 6a55551
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions contrib/scripts/install_prereq
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6a55551

Please sign in to comment.