From 75b8e3756947f64d0dea9c34b5e62c049ccb33ae Mon Sep 17 00:00:00 2001 From: Jana Cupova Date: Oct 21 2021 10:17:41 +0000 Subject: Fix log_output default value Fixes: https://pagure.io/koji/issue/2806 --- diff --git a/builder/kojid b/builder/kojid index b222b1a..a91c6b1 100755 --- a/builder/kojid +++ b/builder/kojid @@ -6153,6 +6153,7 @@ enabled=1 selected[rpm_id]['best_key'] = best_key # write signed rpms + log_output = '' if opts.get('write_signed_rpms'): results = [] rpm_with_key = [] @@ -6162,7 +6163,6 @@ enabled=1 results.append(m.host.writeSignedRPM(rpm_id, selected[rpm_id]['best_key'])) rpm_with_key.append(rpm_id) - log_output = '' for rpm_id, r in zip(rpm_with_key, results): if isinstance(r._result, list): log_output += 'Signed RPM %s is writen with %s key.\n' \