packages. Also make sure package testing works (at least for
amd64).
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>
fi
set -e
(cd $WORKSPACE/packages/$TARGET
fi
set -e
(cd $WORKSPACE/packages/$TARGET
- dpkg-scanpackages . 2> >(grep -v 'warning' 1>&2) | tee Packages | gzip -c > Packages.gz
+ dpkg-scanpackages --multiversion . 2> >(grep -v 'warning' 1>&2) | tee Packages | gzip -c > Packages.gz
apt-ftparchive -o APT::FTPArchive::Release::Origin=Arvados release . > Release
)
fi
apt-ftparchive -o APT::FTPArchive::Release::Origin=Arvados release . > Release
)
fi
# but only when building deb packages (centos does not have support for crosscompiling userspace).
archs=($native_arch)
if [[ "$native_arch" == "amd64" ]] && [[ "$package_format" == "deb" ]]; then
# but only when building deb packages (centos does not have support for crosscompiling userspace).
archs=($native_arch)
if [[ "$native_arch" == "amd64" ]] && [[ "$package_format" == "deb" ]]; then
- archs=('amd64' 'arm64')
+ for ta in ${archs[@]}; do
package_go_binary_worker "$src_path" "$prog" "$package_format" "$description" "$native_arch" "$ta" "$license_file"
retval=$?
package_go_binary_worker "$src_path" "$prog" "$package_format" "$description" "$native_arch" "$ta" "$license_file"
retval=$?
- if [[ "$retval" != 0 ]]; then
+ if [[ $retval -ne 0 ]]; then
cd $WORKSPACE/packages/$TARGET
test_package_presence "$prog" "$go_package_version" "go" "" "$target_arch"
cd $WORKSPACE/packages/$TARGET
test_package_presence "$prog" "$go_package_version" "go" "" "$target_arch"
- if [[ "$?" != "0" ]]; then
- return 1
+ if [[ $? -ne 0 ]]; then
+ return 0
fi
echo "Building $package_format ($target_arch) package for $prog from $src_path"
fi
echo "Building $package_format ($target_arch) package for $prog from $src_path"