From 4fc046627e4a7e8fdc710e0d2f630c43fd034380 Mon Sep 17 00:00:00 2001 From: nazunalika Date: Thu, 26 May 2022 13:55:12 -0700 Subject: [PATCH] pipefail shoudl be on, otherwise all repos are treated as 0 --- iso/py/util/dnf_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iso/py/util/dnf_utils.py b/iso/py/util/dnf_utils.py index 878a4f1..4ba8617 100644 --- a/iso/py/util/dnf_utils.py +++ b/iso/py/util/dnf_utils.py @@ -458,10 +458,12 @@ class RepoSync: debug_entry_point_open = open(debug_entry_point_sh, "w+") entry_point_open.write('#!/bin/bash\n') + entry_point_open.write('set -o pipefail') entry_point_open.write('/usr/bin/dnf install dnf-plugins-core -y\n') entry_point_open.write(sync_cmd + '\n') debug_entry_point_open.write('#!/bin/bash\n') + debug_entry_point_open.write('set -o pipefail') debug_entry_point_open.write('/usr/bin/dnf install dnf-plugins-core -y\n') debug_entry_point_open.write(debug_sync_cmd + '\n') @@ -499,6 +501,7 @@ class RepoSync: ) source_entry_point_open = open(source_entry_point_sh, "w+") source_entry_point_open.write('#!/bin/bash\n') + source_entry_point_open.write('set -o pipefail') source_entry_point_open.write('/usr/bin/dnf install dnf-plugins-core -y\n') source_entry_point_open.write(source_sync_cmd + '\n') source_entry_point_open.close()