Skip to content

Commit

Permalink
Increase the line length in a pseudo-terminal (#624)
Browse files Browse the repository at this point in the history
The name of the rpm we download during a package backup can be so long
that the length of the line of 120 characters we set in the pseudo-terminal
may not be sufficient.

Real world example of a truncated rpm name:
libvirt-daemon-driver-storage-core-8.0.0-5.4.0.1.module+el8.6.0+20743+999ad699.x86_64.r 326 kB/s | 253 kB     00:00
  • Loading branch information
bocekm authored Oct 13, 2022
1 parent 02e25a5 commit fc884a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convert2rhel/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def run_subprocess(cmd, print_cmd=True, print_output=True):
return output, return_code


def run_cmd_in_pty(cmd, expect_script=(), print_cmd=True, print_output=True, columns=120):
def run_cmd_in_pty(cmd, expect_script=(), print_cmd=True, print_output=True, columns=150):
"""Similar to run_subprocess(), but the command is executed in a pseudo-terminal.
The pseudo-terminal can be useful when a command prints out a different output with or without an active terminal
Expand Down

0 comments on commit fc884a6

Please sign in to comment.