From 8d7ee9ee38ce737e78f59c244bea6debc8c6585a Mon Sep 17 00:00:00 2001 From: Richard van Velzen Date: Mon, 16 Jun 2014 15:49:08 -0700 Subject: [PATCH] Let phutil_rebuild_map **really** be quiet Summary: Depends on D9586. The progress bar is written to stderr which results in bad stuff happening when you try run `lint` (`PhutilLibraryLinter` calls it) Test Plan: run `arc lint`, see no more errors Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9587 --- scripts/lib/PhutilLibraryMapBuilder.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/lib/PhutilLibraryMapBuilder.php b/scripts/lib/PhutilLibraryMapBuilder.php index ef709602..555d5191 100644 --- a/scripts/lib/PhutilLibraryMapBuilder.php +++ b/scripts/lib/PhutilLibraryMapBuilder.php @@ -141,6 +141,9 @@ final class PhutilLibraryMapBuilder { $this->log("Analyzing {$count} files with {$limit} subprocesses...\n"); $progress = new PhutilConsoleProgressBar(); + if ($this->quiet) { + $progress->setQuiet(true); + } $progress->setTotal(count($futures)); foreach (Futures($futures)->limit($limit) as $file => $future) {