[CICN-22] Impossible to push arm packages in packagecloud 81/22781/5
authorAngelo Mantellini <[email protected]>
Wed, 16 Oct 2019 16:21:07 +0000 (18:21 +0200)
committerAngelo Mantellini <[email protected]>
Thu, 17 Oct 2019 16:58:14 +0000 (18:58 +0200)
Signed-off-by: Angelo Mantellini <[email protected]>
Change-Id: I12f3c22537b9bd02e130e841c9cbc2c0ab87ce0c

libparc/scripts/build-package.sh

index 23941b3..42de8d4 100644 (file)
@@ -2,7 +2,6 @@
 # basic build script example
 set -euxo pipefail
 IFS=$'\n\t'
-
 SCRIPT_PATH=$( cd "$(dirname "${BASH_SOURCE}")" ; pwd -P )
 APT_PATH=`which apt-get` || true
 apt_get=${APT_PATH:-"/usr/local/bin/apt-get"}
@@ -116,6 +115,8 @@ build_package() {
 
         if [ "$ARCHITECTURE" == "x86_64" ]; then
             ARCHITECTURE="amd64"
+        elif [ "$ARCHITECTURE" == "aarch64" ]; then
+            ARCHITECTURE="arm64"
         fi
 
     elif [ -f /etc/redhat-release ];then