Add arm64 binary (#127)

* Add support for arm64 APT in Go apt-query binary.
This commit is contained in:
Oliver Kopp 2024-03-01 21:59:14 +01:00 committed by GitHub
parent 2555a377df
commit a6c3917cc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

BIN
apt_query-arm64 Executable file

Binary file not shown.

8
lib.sh
View file

@ -103,7 +103,13 @@ function get_normalized_package_list {
| sed 's/[,\]/ /g; s/\s\+/ /g; s/^\s\+//g; s/\s\+$//g' \
| sort -t' ')
local script_dir="$(dirname -- "$(realpath -- "${0}")")"
${script_dir}/apt_query normalized-list ${packages}
local architecture=$(dpkg --print-architecture)
if [ "${architecture}" == "arm64" ]; then
${script_dir}/apt_query-arm64 normalized-list ${packages}
else
${script_dir}/apt_query normalized-list ${packages}
fi
}
###############################################################################