aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2012-10-25 16:56:03 -0400
committerW. Trevor King <wking@tremily.us>2012-10-25 19:01:47 -0400
commit4028abf2040b1f59ff3829e98f7880f674f1ca54 (patch)
tree54b8c16f1d836ebf04c8d91c7641a1386eb7f744
parent1d7f54bfa9a618b995278a01579f69ea3a37c0e6 (diff)
downloadbugseverywhere-4028abf2040b1f59ff3829e98f7880f674f1ca54.tar.gz
release.py: remove dependency on deprecated libbe.subproc.Pipe
Pipe has been gone since: commit f1ae4b7f3fea6fb78a54ee5073aee648a3d73179 Author: W. Trevor King <wking@drexel.edu> Date: Sat Feb 25 11:16:01 2012 -0500 Remove util.subproc.Pipe, as we no longer use it in BE.
-rwxr-xr-xrelease.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/release.py b/release.py
index 89237ed..814e246 100755
--- a/release.py
+++ b/release.py
@@ -24,7 +24,7 @@ import shutil
import string
import sys
-from libbe.util.subproc import Pipe, invoke
+from libbe.util.subproc import invoke
INITIAL_COMMIT = '1bf1ec598b436f41ff27094eddf0b28c797e359d'
@@ -86,9 +86,10 @@ def export(target_dir):
if not target_dir.endswith(os.path.sep):
target_dir += os.path.sep
print 'export current revision to', target_dir
- p = Pipe([['git', 'archive', '--prefix', target_dir, 'HEAD'],
- ['tar', '-xv']])
- assert p.status == 0, p.statuses
+ status,stdout,stderr = invoke(
+ ['git', 'archive', '--prefix', target_dir, 'HEAD'],
+ unicode_output=False)
+ status,stdout,stderr = invoke(['tar', '-xv'], stdin=stdout)
def make_version():
print 'generate libbe/_version.py'