From 334ec39abb73947d6b9fbf0a69cb33ce8353c8a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Tue, 4 Oct 2016 11:41:52 +0200 Subject: redirect stdin, as required for ssh session invoked through binrepo --- MgaRepo/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MgaRepo') diff --git a/MgaRepo/util.py b/MgaRepo/util.py index c0566de..dfae85c 100644 --- a/MgaRepo/util.py +++ b/MgaRepo/util.py @@ -50,7 +50,7 @@ def execcmd(*cmd, **kwargs): if verbose: print("cmd: " + str(cmd).lstrip("(").rstrip(")").replace("', '", "' '")) - proc = subprocess.Popen(cmdargs, shell=False, stdout=stdout, + proc = subprocess.Popen(cmdargs, shell=False, stdout=stdout, stdin=kwargs.get("stdin"), stderr=stderr, env=env) output = "" -- cgit v1.2.1