Skip to content

Commit

Permalink
cit: print to stderr to allow piping from cit log cat.
Browse files Browse the repository at this point in the history
  • Loading branch information
shishkander authored and Commit bot committed Jun 17, 2016
1 parent 3bb82ff commit 56396af
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cit.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ def need_to_update(branch):

def ensure_infra(branch):
"""Ensures that infra.git is present in ~/.chrome-infra."""
print 'Fetching infra@%s into %s, may take a couple of minutes...' % (
branch, TARGET_DIR)
sys.stderr.write(
'Fetching infra@%s into %s, may take a couple of minutes...' % (
branch, TARGET_DIR))
sys.stderr.flush()
if not os.path.isdir(TARGET_DIR):
os.mkdir(TARGET_DIR)
if not os.path.exists(os.path.join(TARGET_DIR, '.gclient')):
Expand All @@ -69,6 +71,8 @@ def ensure_infra(branch):
[sys.executable, GCLIENT, 'sync', '--revision', 'origin/%s' % (branch,)],
cwd=TARGET_DIR,
stdout=subprocess.PIPE)
sys.stderr.write(' done.\n')
sys.stderr.flush()


def get_available_tools():
Expand Down

0 comments on commit 56396af

Please sign in to comment.