From 1e6fbef432973176f92c45223bad057a8b6d9f69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ezina?= Date: Mon, 14 Oct 2024 15:08:39 +0200 Subject: [PATCH] citest --- contrib/ci/distro.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/ci/distro.sh b/contrib/ci/distro.sh index defa83ec5fb..c1dd11345d2 100644 --- a/contrib/ci/distro.sh +++ b/contrib/ci/distro.sh @@ -52,10 +52,16 @@ function distro_pkg_install() declare prompt=$'Need root permissions to install packages.\n' prompt+="Enter sudo password for $USER: " if [[ "$DISTRO_BRANCH" == -redhat-fedora-* ]]; then + set +e [ $# != 0 ] && sudo -p "$prompt" \ /usr/bin/dnf --assumeyes --best \ --setopt=install_weak_deps=False \ install "$@" + if [ $? -ne 0 ]; then + journalctl -xe --no-pager + exit 1 + fi + set -e elif [[ "$DISTRO_BRANCH" == -redhat-* ]]; then [ $# != 0 ] && sudo -p "$prompt" yum --assumeyes install "$@" |& # Pass input to output, fail if a missing package is reported