commit:     cff8c8dd63384b8b38375168a4859fd0a78f3858
Author:     André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Mon Dec 15 23:07:40 2014 +0000
Commit:     André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Mon Dec 15 23:07:40 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=cff8c8dd

run commands without stdin by default

roverlay.tools->run_command(): let stdin default to /dev/null

---
 roverlay/tools/runcmd.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/roverlay/tools/runcmd.py b/roverlay/tools/runcmd.py
index 7561669..08e1bda 100644
--- a/roverlay/tools/runcmd.py
+++ b/roverlay/tools/runcmd.py
@@ -16,7 +16,7 @@ DEBUG_TO_CONSOLE = False
 
 def run_command_get_output (
    cmdv, env, debug_to_console=False, use_filter=True, filter_func=None,
-   binary_stdout=False, stdin=None
+   binary_stdout=False, stdin=False
 ):
    # note that debug_to_console breaks calls that want to parse stdout
    pipe_target = None if debug_to_console else subprocess.PIPE
@@ -46,9 +46,9 @@ def run_command_get_output (
    return ( cmd_call, output )
 # --- end of run_command_get_output (...) ---
 
-def run_command ( cmdv, env, logger, return_success=False ):
+def run_command ( cmdv, env, logger, return_success=False, **kwargs ):
    cmd_call, output = run_command_get_output (
-      cmdv, env, DEBUG_TO_CONSOLE, use_filter=True
+      cmdv, env, DEBUG_TO_CONSOLE, use_filter=True, **kwargs
    )
 
    # log stderr

Reply via email to