Merge branch '19937-build-packages-fix'. Closes #19937
[arvados.git] / build / package-testing / deb-common-test-packages.sh
index 77017ba9702cb870ed83cb982fe3b135a779e6e6..cb9d538e8ed5638b04f45d6d319d60973f366936 100755 (executable)
@@ -23,7 +23,7 @@ export ARV_PACKAGES_DIR="/arvados/packages/$target"
 
 dpkg-query --show > "$ARV_PACKAGES_DIR/$1.before"
 
-apt-get $DASHQQ_UNLESS_DEBUG update
+apt-get $DASHQQ_UNLESS_DEBUG --allow-insecure-repositories update
 
 apt-get $DASHQQ_UNLESS_DEBUG -y --allow-unauthenticated install "$1" >"$STDOUT_IF_DEBUG" 2>"$STDERR_IF_DEBUG"
 
@@ -50,7 +50,7 @@ if [[ "$DEBUG" != "0" ]]; then
   while read so && [ -n "$so" ]; do
       echo
       echo "== Packages dependencies for $so =="
-      ldd "$so" | awk '($3 ~ /^\//){print $3}' | sort -u | xargs dpkg -S | cut -d: -f1 | sort -u
+      ldd "$so" | awk '($3 ~ /^\//){print $3}' | sort -u | xargs -r dpkg -S | cut -d: -f1 | sort -u
   done <<EOF
 $(find -name '*.so')
 EOF