]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Call phutil_passthru() instead of passthru() in liberate
authorvrana <jakubv@fb.com>
Sun, 8 Apr 2012 08:29:28 +0000 (01:29 -0700)
committervrana <jakubv@fb.com>
Mon, 9 Apr 2012 04:34:36 +0000 (21:34 -0700)
Summary: Solves T1085 and is probably slightly better anyway.

Test Plan:
  arc liberate

Reviewers: epriestley

Reviewed By: epriestley

CC: aran
Maniphest Tasks: T1085

Differential Revision: https://secure.phabricator.com/D2151

src/workflow/liberate/ArcanistLiberateWorkflow.php
src/workflow/liberate/__init__.php

index 81ddbc777ec468d92915b2447091fe9b779b4131..dea2a113448aa0c4682b80cc1e2142616c058bf9 100644 (file)
@@ -162,9 +162,7 @@ EOTEXT
 
     echo "Verifying library...\n";
 
-    $err = 0;
-    $cmd = csprintf('%s liberate --verify -- %s', $arc_bin, $path);
-    passthru($cmd, $err);
+    $err = phutil_passthru('%s liberate --verify -- %s', $arc_bin, $path);
 
     $do_update = (!$err || $this->getArgument('force-update'));
 
index aab0b048b6f2dd65429543942b7c90d2bf9a7771..ef7a7c2a6c51a9069e8f823495bf50abb265e52a 100644 (file)
@@ -20,7 +20,6 @@ phutil_require_module('phutil', 'filesystem/filefinder');
 phutil_require_module('phutil', 'future/exec');
 phutil_require_module('phutil', 'moduleutils');
 phutil_require_module('phutil', 'utils');
-phutil_require_module('phutil', 'xsprintf/csprintf');
 
 
 phutil_require_source('ArcanistLiberateWorkflow.php');