depinst: change vprint to print to stderr; the messages are status, not program output

This commit is contained in:
Peter Dimov
2025-10-17 19:36:57 +03:00
parent 15d61d54bb
commit 930d2d320a

View File

@@ -21,7 +21,7 @@ verbose = 0
def vprint( level, *args ):
if verbose >= level:
print( *args )
print( *args, file=sys.stderr )
class CommandExecutionError(Exception):
@@ -329,7 +329,5 @@ if( __name__ == "__main__" ):
except Exception as e:
sys.stdout.flush()
print( 'Error:', e, file=sys.stderr )
sys.exit(1)
vprint( -1, 'Error:', e )
sys.exit( 1 )