mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 10:45:29 +00:00
Add arm64 binary (#127)
* Add support for arm64 APT in Go apt-query binary.
This commit is contained in:
parent
2555a377df
commit
a6c3917cc9
BIN
apt_query-arm64
Executable file
BIN
apt_query-arm64
Executable file
Binary file not shown.
6
lib.sh
6
lib.sh
|
@ -103,7 +103,13 @@ function get_normalized_package_list {
|
||||||
| sed 's/[,\]/ /g; s/\s\+/ /g; s/^\s\+//g; s/\s\+$//g' \
|
| sed 's/[,\]/ /g; s/\s\+/ /g; s/^\s\+//g; s/\s\+$//g' \
|
||||||
| sort -t' ')
|
| sort -t' ')
|
||||||
local script_dir="$(dirname -- "$(realpath -- "${0}")")"
|
local script_dir="$(dirname -- "$(realpath -- "${0}")")"
|
||||||
|
|
||||||
|
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}
|
${script_dir}/apt_query normalized-list ${packages}
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
Loading…
Reference in a new issue