aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-14 00:24:08 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-14 00:24:08 -0500
commit41c369fafb6b775c50ba1d50efc57c024449b97c (patch)
tree08dbef78d2f436d70a92525b48ebb67fff44e8f4
parentf1356144841ff5fb8b9cd7a3525725271803807b (diff)
downloadbugseverywhere-41c369fafb6b775c50ba1d50efc57c024449b97c.tar.gz
Replaced libbe.arch.invoke() with general rcs.invoke()
-rw-r--r--libbe/arch.py17
1 files changed, 3 insertions, 14 deletions
diff --git a/libbe/arch.py b/libbe/arch.py
index 038325a..001f852 100644
--- a/libbe/arch.py
+++ b/libbe/arch.py
@@ -14,28 +14,17 @@
# 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, PIPE
import os
import config
import errno
+
+from rcs import invoke
+
client = config.get_val("arch_client")
if client is None:
client = "tla"
config.set_val("arch_client", client)
-def invoke(args):
- try :
- q = Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE)
- except OSError, e :
- strerror = "%s\nwhile executing %s" % (e.args[1], args)
- raise Exception("Command failed: %s" % strerror)
- output = q.stdout.read()
- error = q.stderr.read()
- status = q.wait()
- if status >= 0:
- return status, output, error
- raise Exception("Command failed: %s" % error)
-
def invoke_client(*args, **kwargs):
cl_args = [client]