From 32fb34c59f389892debe38aa3a7dcb532a18380c Mon Sep 17 00:00:00 2001 From: Alexandre 'Kidev' Poumaroux <1204936+Kidev@users.noreply.github.com> Date: Mon, 27 Jan 2025 01:19:15 +0100 Subject: [PATCH] Make output more readable in console for list-qt-commercial --- aqt/installer.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/aqt/installer.py b/aqt/installer.py index c165b95c..59b06538 100644 --- a/aqt/installer.py +++ b/aqt/installer.py @@ -917,7 +917,16 @@ def run_list_qt_commercial(self, args) -> None: # Run search and display output output = safely_run_save_output(cmd, Settings.qt_installer_timeout) - print(output) + + # Process and print the output properly + if output.stdout: + # Print the actual output with proper newlines + print(output.stdout) + + # If there are any errors, print them as warnings + if output.stderr: + for line in output.stderr.splitlines(): + self.logger.warning(line) except Exception as e: self.logger.error(f"Failed to list Qt commercial packages: {e}")