summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-08-12 22:03:31 -0700
committerJesse Keating <jkeating@redhat.com>2010-08-12 22:03:52 -0700
commit050360dc31c7cee41a47ca0150ef132919408aba (patch)
tree6c99a0da6ff53226093e2354e00596f0214eff09
parentd78fa0a2b85e76ea7ce469d1cd009e5eb4786444 (diff)
downloadfedora-packager-050360dc31c7cee41a47ca0150ef132919408aba.zip
fedora-packager-050360dc31c7cee41a47ca0150ef132919408aba.tar.gz
fedora-packager-050360dc31c7cee41a47ca0150ef132919408aba.tar.xz
Add missing process call for non-pipe no tty.
-rw-r--r--src/pyfedpkg/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index 9acdf82..9a5abc9 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -164,6 +164,11 @@ def _run_command(cmd, shell=False, env=None, pipe=[]):
stdout=subprocess.PIPE,
stderr=subprocess.PIPE, shell=shell)
output, error = proc2.communicate()
+ else:
+ proc = subprocess.Popen(command, env=environ,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE, shell=shell)
+ output, error = proc.communicate()
except OSError, e:
raise FedpkgError(e)
log.info(output)