X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7db3857d78a099108c3204c25294a5aec1f3a3bc..3cc81d1201ec9abfe818207c450df62232f5bce9:/build/run-build-packages-one-target.sh diff --git a/build/run-build-packages-one-target.sh b/build/run-build-packages-one-target.sh index f476a9691c..1a845d200a 100755 --- a/build/run-build-packages-one-target.sh +++ b/build/run-build-packages-one-target.sh @@ -143,6 +143,22 @@ if [[ -n "$test_packages" ]]; then fi if [[ -n "$(find $WORKSPACE/packages/$TARGET -name '*.deb')" ]] ; then + set +e + /usr/bin/which dpkg-scanpackages >/dev/null + if [[ "$?" != "0" ]]; then + echo >&2 + echo >&2 "Error: please install dpkg-dev. E.g. sudo apt-get install dpkg-dev" + echo >&2 + exit 1 + fi + /usr/bin/which apt-ftparchive >/dev/null + if [[ "$?" != "0" ]]; then + echo >&2 + echo >&2 "Error: please install apt-utils. E.g. sudo apt-get install apt-utils" + echo >&2 + exit 1 + fi + set -e (cd $WORKSPACE/packages/$TARGET dpkg-scanpackages . 2> >(grep -v 'warning' 1>&2) | tee Packages | gzip -c > Packages.gz apt-ftparchive -o APT::FTPArchive::Release::Origin=Arvados release . > Release