Revert "Plumb in crprocess instead of RunCommand to allow quiet operation."
sjg asked me to help revert his commit to fix the buildbots.
This reverts commit 77a59c0dc2b1f621dcdf0e8b99b873f4998bd691.
BUG=
TEST=
Review URL: http://codereview.chromium.org/6626039
Change-Id: I47e8606e8991d0891552449a428edd5d4d4d3713
diff --git a/lib/cros_build_lib.py b/lib/cros_build_lib.py
index 2ea48bf..fe30fcb 100644
--- a/lib/cros_build_lib.py
+++ b/lib/cros_build_lib.py
@@ -117,7 +117,6 @@
return cmd_result
-#TODO(sjg): Remove this in favor of operation.Die
def Die(message):
"""Emits a red error message and halts execution.
@@ -129,7 +128,6 @@
sys.exit(1)
-#TODO(sjg): Remove this in favor of operation.Warning
# pylint: disable-msg=W0622
def Warning(message):
"""Emits a yellow warning message and continues execution.
@@ -141,18 +139,14 @@
Color(_STDOUT_IS_TTY).Color(Color.YELLOW, '\nWARNING: ' + message))
-# This command is deprecated in favor of operation.Info()
-# It is left here for the moment so people are aware what happened.
-# The reason is that this is not aware of the terminal output restrictions such
-# as verbose, quiet and subprocess output. You should not be calling this.
-# def Info(message):
-# """Emits a blue informational message and continues execution.
-#
-# Args:
-# message: The message to be emitted.
-# """
-# print >> sys.stderr, (
-# Color(_STDOUT_IS_TTY).Color(Color.BLUE, '\nINFO: ' + message))
+def Info(message):
+ """Emits a blue informational message and continues execution.
+
+ Args:
+ message: The message to be emitted.
+ """
+ print >> sys.stderr, (
+ Color(_STDOUT_IS_TTY).Color(Color.BLUE, '\nINFO: ' + message))
def ListFiles(base_dir):