mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
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:
@@ -192,10 +192,7 @@ check_installed_debs() {
|
|||||||
for pack in "$@" ; do
|
for pack in "$@" ; do
|
||||||
tocheck="${tocheck} ^${pack}$ ~P^${pack}$"
|
tocheck="${tocheck} ^${pack}$ ~P^${pack}$"
|
||||||
done
|
done
|
||||||
pkgs=$(aptitude -F '%c %p' search ${tocheck} 2>/dev/null | awk '/^p/{print $2}')
|
aptitude -F '%c %p' search $tocheck 2>/dev/null | awk '/^p/{print $2}' | grep -vF :
|
||||||
if [ ${#pkgs} -ne 0 ]; then
|
|
||||||
echo $pkgs | sed -r -e "s/ ?[^ :]+:i386//g"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# parsing the output of yum is close to impossible.
|
# parsing the output of yum is close to impossible.
|
||||||
|
Reference in New Issue
Block a user