From 0c1517393bbb8bf3bc4d3eca114665c7d43af3d7 Mon Sep 17 00:00:00 2001 From: Lars Erik Wik Date: Thu, 12 Feb 2026 11:54:55 +0100 Subject: [PATCH] Reduce dpkg install noise with run_and_print_on_failure Each dpkg -i call produces ~8 lines of verbose output per package (Selecting, Reading database, Preparing, Unpacking, Setting up). For a hub build with ~20 dependencies this adds ~160 lines of noise to the Jenkins logs. Wrap the dpkg call with run_and_print_on_failure so output is only shown when installation fails. Also remove -x from shebang to suppress shell trace output. Ticket: ENT-12619 Signed-off-by: Lars Erik Wik Co-Authored-By: Claude Opus 4.6 --- deps-packaging/pkg-install-deb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/deps-packaging/pkg-install-deb b/deps-packaging/pkg-install-deb index 111d18e3c..37c3f1c71 100755 --- a/deps-packaging/pkg-install-deb +++ b/deps-packaging/pkg-install-deb @@ -1,11 +1,13 @@ -#!/bin/sh -ex +#!/bin/sh -e # Installs given packages +. "$(dirname "$0")/../build-scripts/functions" if [ $# -eq 0 ]; then - echo "Usage: $0 [ ...]" - exit 1 + echo "Usage: $0 [ ...]" + exit 1 fi -sudo dpkg -i "$@" +log_debug "Installing packages: $*" +run_and_print_on_failure sudo dpkg -i "$@"