From 4028abf2040b1f59ff3829e98f7880f674f1ca54 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 25 Oct 2012 16:56:03 -0400 Subject: [PATCH] release.py: remove dependency on deprecated libbe.subproc.Pipe Pipe has been gone since: commit f1ae4b7f3fea6fb78a54ee5073aee648a3d73179 Author: W. Trevor King Date: Sat Feb 25 11:16:01 2012 -0500 Remove util.subproc.Pipe, as we no longer use it in BE. --- release.py | 9 +++++---- 1 file 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' -- 2.26.2