Skip to content

Commit 6bf3d0b

Browse files
MatthijsBurghar13pit
authored andcommitted
less verbose cmd printing
1 parent 4028a61 commit 6bf3d0b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/tue_get/installer_impl.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def _err_handler(self, sub: BackgroundPopen, line: str) -> None:
282282

283283
def _default_background_popen(self, cmd: str) -> BackgroundPopen:
284284
cmd, cmds = _which_split_cmd(cmd)
285-
self.tue_install_echo(repr(cmd))
285+
self.tue_install_debug(repr(cmd))
286286
sub = BackgroundPopen(
287287
args=cmds, out_handler=self._out_handler, err_handler=self._err_handler, stdin=sp.PIPE, text=True
288288
)
@@ -836,7 +836,7 @@ def tue_install_add_text(self, source_file: str, target_file: str) -> bool:
836836
cmd = f"bash -c \"echo -e '{target_text}' | {sudo_cmd}tee {target_file_path}\""
837837

838838
cmd, cmds = _which_split_cmd(cmd)
839-
self.tue_install_echo(repr(cmd))
839+
self.tue_install_debug(repr(cmd))
840840
sub = BackgroundPopen(
841841
args=cmds,
842842
err_handler=self._err_handler,
@@ -880,7 +880,7 @@ def _out_handler_installed_pkgs(_: BackgroundPopen, line: str) -> None:
880880
# Based on https://stackoverflow.com/questions/1298066
881881
cmd = "dpkg-query -W -f '${package} ${status}\n'"
882882
cmd, cmds = _which_split_cmd(cmd)
883-
self.tue_install_echo(repr(cmd))
883+
self.tue_install_debug(repr(cmd))
884884
sub = BackgroundPopen(
885885
args=cmds,
886886
out_handler=_out_handler_installed_pkgs, # Needed to prevent buffer to get full
@@ -1071,7 +1071,7 @@ def tue_install_snap_now(self, pkgs: List[str]) -> bool:
10711071

10721072
cmd = "snap list"
10731073
cmd, cmds = _which_split_cmd(cmd)
1074-
self.tue_install_echo(repr(cmd))
1074+
self.tue_install_debug(repr(cmd))
10751075
sub = BackgroundPopen(args=cmds, err_handler=self._err_handler, stdout=sp.PIPE, text=True)
10761076
sub.wait()
10771077
if sub.returncode != 0:
@@ -1126,7 +1126,7 @@ def tue_install_gem_now(self, pkgs: List[str]) -> bool:
11261126

11271127
cmd = "gem list"
11281128
cmd, cmds = _which_split_cmd(cmd)
1129-
self.tue_install_echo(repr(cmd))
1129+
self.tue_install_debug(repr(cmd))
11301130
sub = BackgroundPopen(args=cmds, err_handler=self._err_handler, stdout=sp.PIPE, text=True)
11311131
sub.wait()
11321132
if sub.returncode != 0:

0 commit comments

Comments
 (0)