Skip to content

Commit 930d2d3

Browse files
committed
depinst: change vprint to print to stderr; the messages are status, not program output
1 parent 15d61d5 commit 930d2d3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

depinst/depinst.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
def vprint( level, *args ):
2222

2323
if verbose >= level:
24-
print( *args )
24+
print( *args, file=sys.stderr )
2525

2626

2727
class CommandExecutionError(Exception):
@@ -329,7 +329,5 @@ def install_module_dependencies( deps, x, gm, git_args, dep_path ):
329329

330330
except Exception as e:
331331

332-
sys.stdout.flush()
333-
334-
print( 'Error:', e, file=sys.stderr )
335-
sys.exit(1)
332+
vprint( -1, 'Error:', e )
333+
sys.exit( 1 )

0 commit comments

Comments
 (0)