aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <proyvind@moondrake.org>2016-10-04 11:41:52 +0200
committerPer Øyvind Karlsen <proyvind@moondrake.org>2016-10-04 11:41:52 +0200
commit334ec39abb73947d6b9fbf0a69cb33ce8353c8a5 (patch)
tree1f46b47534295c361b87fabeef7166ddee2938ce
parent6952d76600e075e19d3f8b4c048dc113347c488f (diff)
downloadmgarepo-334ec39abb73947d6b9fbf0a69cb33ce8353c8a5.tar
mgarepo-334ec39abb73947d6b9fbf0a69cb33ce8353c8a5.tar.gz
mgarepo-334ec39abb73947d6b9fbf0a69cb33ce8353c8a5.tar.bz2
mgarepo-334ec39abb73947d6b9fbf0a69cb33ce8353c8a5.tar.xz
mgarepo-334ec39abb73947d6b9fbf0a69cb33ce8353c8a5.zip
redirect stdin, as required for ssh session invoked through binrepo
-rw-r--r--MgaRepo/util.py2
1 files changed, 1 insertions, 1 deletions
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 = ""