Skip to content

tdnf: capture install output so it does not overlay the curses UI#46

Merged
oliverkurth merged 1 commit into
vmware:masterfrom
dcasota:upstream/tdnf-capture-output
Jun 5, 2026
Merged

tdnf: capture install output so it does not overlay the curses UI#46
oliverkurth merged 1 commit into
vmware:masterfrom
dcasota:upstream/tdnf-capture-output

Conversation

@dcasota

@dcasota dcasota commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Tdnf.execute(do_json=False) uses subprocess.check_call(args), which inherits the installer's stdout/stderr. During a curses (UI) install, tdnf/rpm output — including file paths such as /etc/os-release — is printed directly to the terminal and overlays the installer progress bar.

Fix

Capture the subprocess output and route it to the installer log instead, preserving the previous return value and failure (CalledProcessError) behaviour.

🤖 Generated with Claude Code

execute(do_json=False) used subprocess.check_call(), inheriting the
installer's stdout/stderr. During a UI install that overlays the curses
progress bar with tdnf/rpm messages (e.g. file paths like /etc/os-release).
Capture the output and send it to the log instead.

Co-Authored-By: Daniel Casota <dcasota@gmail.com>
@dcasota

dcasota commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

Part of a coordinated Photon 5.0 installer fix set:

@oliverkurth

Copy link
Copy Markdown
Contributor

Thank you, @dcasota !

@oliverkurth oliverkurth merged commit 7f42f0d into vmware:master Jun 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants