Add arm64 binary (#127)
* Add support for arm64 APT in Go apt-query binary.
This commit is contained in:
parent
2555a377df
commit
a6c3917cc9
2 changed files with 7 additions and 1 deletions
BIN
apt_query-arm64
Executable file
BIN
apt_query-arm64
Executable file
Binary file not shown.
8
lib.sh
8
lib.sh
|
@ -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
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
|
|
Loading…
Reference in a new issue