Skip to content

Commit 1da2558

Browse files
author
Akash Satheesan
authored
chore(ci): explain get_nfpm_arch in a comment
1 parent 0788e94 commit 1da2558

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ci/build/build-packages.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ release_gcp() {
4343
cp "./release-packages/$release_name.tar.gz" "./release-gcp/latest/$OS-$ARCH.tar.gz"
4444
}
4545

46+
# On some CPU architectures (notably node/uname "armv7l", default on Raspberry Pis),
47+
# different package managers have different labels for the same CPU (deb=armhf, rpm=armhfp).
48+
# This function parses arch-override.json and returns the overriden arch on platforms
49+
# with alternate labels, or the same arch otherwise.
4650
get_nfpm_arch() {
4751
if jq -re ".${PKG_FORMAT}.${ARCH}" ./ci/build/arch-override.json > /dev/null; then
4852
jq -re ".${PKG_FORMAT}.${ARCH}" ./ci/build/arch-override.json

0 commit comments

Comments
 (0)