From 7d576c6d427d748e43c71e9ee031f556810fbb36 Mon Sep 17 00:00:00 2001 From: Petr Stodulka Date: Tue, 10 Mar 2026 16:11:47 +0100 Subject: [PATCH 069/108] dnflibs.dnfplugin: Drop dead code: _handle_transaction_err_msg_old This function is not used anywhere anymore. Let's just remove it. Signed-off-by: Petr Stodulka --- .../common/libraries/dnflibs/dnfplugin.py | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/repos/system_upgrade/common/libraries/dnflibs/dnfplugin.py b/repos/system_upgrade/common/libraries/dnflibs/dnfplugin.py index 32407283..b0e10054 100644 --- a/repos/system_upgrade/common/libraries/dnflibs/dnfplugin.py +++ b/repos/system_upgrade/common/libraries/dnflibs/dnfplugin.py @@ -145,27 +145,6 @@ def backup_debug_data(context): api.current_logger().warning('Failed to copy debugdata. Message: {}'.format(str(e)), exc_info=True) -def _handle_transaction_err_msg_old(stage, xfs_info, err): - # NOTE(pstodulk): This is going to be removed in future! - message = 'DNF execution failed with non zero exit code.' - details = {'STDOUT': err.stdout, 'STDERR': err.stderr} - - if 'more space needed on the' in err.stderr and stage != 'upgrade': - # Disk Requirements: - # At least more space needed on the filesystem. - # - article_section = 'Generic case' - if xfs_info.present and xfs_info.without_ftype: - article_section = 'XFS ftype=0 case' - - message = ('There is not enough space on the file system hosting /var/lib/leapp directory ' - 'to extract the packages.') - details = {'hint': "Please follow the instructions in the '{}' section of the article at: " - "link: https://access.redhat.com/solutions/5057391".format(article_section)} - - raise StopActorExecutionError(message=message, details=details) - - def _handle_transaction_err_msg(err, is_container=False): NO_SPACE_STR = 'more space needed on the' if NO_SPACE_STR not in err.stderr: -- 2.54.0