21521: Make apt upload script less verbose
authorBrett Smith <brett.smith@curii.com>
Fri, 26 Apr 2024 20:41:55 +0000 (16:41 -0400)
committerBrett Smith <brett.smith@curii.com>
Fri, 26 Apr 2024 20:41:55 +0000 (16:41 -0400)
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

jenkins/run_upload_packages.py

index c6949e82844db7b98c6a36c28bb6807731a8de07..3a51e408f8aeb5fad78d230b187db549f1509c7e 100755 (executable)
@@ -205,14 +205,11 @@ class DistroPackageSuite(PackageSuite):
 
 class DebianPackageSuite(DistroPackageSuite):
     APT_SCRIPT = """
+set -e
 cd "$1"; shift
 DISTNAME=$1; shift
 for package in "$@"; do
-  set +e
-  aptly repo search "$DISTNAME" "${package%.deb}" >/dev/null 2>&1
-  RET=$?
-  set -e
-  if [[ $RET -eq 0 ]]; then
+  if aptly repo search "$DISTNAME" "${package%.deb}" >/dev/null 2>&1; then
     echo "Not adding $package, it is already present in repo $DISTNAME"
     rm "$package"
   else