Fixed subprocess invocation for bzr
authorAaron Bentley <abentley@panoramicfeedback.com>
Fri, 23 Dec 2005 18:36:59 +0000 (13:36 -0500)
committerAaron Bentley <abentley@panoramicfeedback.com>
Fri, 23 Dec 2005 18:36:59 +0000 (13:36 -0500)
libbe/arch.py
libbe/bzr.py

index 28d64d4128501f9e511625cb3534a1fe95e386c6..7edba37d26ab45aef54697b15bd215c87b2a62a2 100644 (file)
@@ -32,6 +32,7 @@ def invoke(args):
         return status, output, error
     raise Exception("Command failed: %s" % error)
 
+
 def invoke_client(*args, **kwargs):
     cl_args = [client]
     cl_args.extend(args)
index bc4d98db54750e9fef29fd417e09cef8c6e5e5ca..80b9e9bb37cfb5243e7e8949df9ea2a9a812aeed 100644 (file)
 #    You should have received a copy of the GNU General Public License
 #    along with this program; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-from subprocess import Popen
+from subprocess import Popen, PIPE
 import os
 import config
 
 def invoke(args):
-    q=Popen(args)
+    q = Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE)
     output = q.stdout.read()
     error = q.stderr.read()
     status = q.wait()