Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(625)

Side by Side Diff: dart/tools/build.py

Issue 138943005: Don't eat non-empty chunks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 # 6 #
7 7
8 import optparse 8 import optparse
9 import os 9 import os
10 import re 10 import re
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 print '%s%s\r' % (clr_eol, section), 286 print '%s%s\r' % (clr_eol, section),
287 chunk = [] 287 chunk = []
288 if not section or has_interesting_info: 288 if not section or has_interesting_info:
289 print line 289 print line
290 else: 290 else:
291 length = len(chunk) 291 length = len(chunk)
292 if length == 2 and line != 'Check dependencies': 292 if length == 2 and line != 'Check dependencies':
293 has_interesting_info = True 293 has_interesting_info = True
294 elif (length == 1 or length == 3) and line: 294 elif (length == 1 or length == 3) and line:
295 has_interesting_info = True 295 has_interesting_info = True
296 elif length > 3:
297 has_interesting_info = True
296 if has_interesting_info: 298 if has_interesting_info:
297 print '\n'.join(chunk) 299 print '\n'.join(chunk)
298 chunk = [] 300 chunk = []
299 else: 301 else:
300 chunk.append(line) 302 chunk.append(line)
301 if not is_empty_chunk(chunk): 303 if not is_empty_chunk(chunk):
302 print '\n'.join(chunk) 304 print '\n'.join(chunk)
303 305
304 306
305 def Main(): 307 def Main():
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 process.wait() 408 process.wait()
407 if process.returncode != 0: 409 if process.returncode != 0:
408 print "BUILD FAILED" 410 print "BUILD FAILED"
409 return 1 411 return 1
410 412
411 return 0 413 return 0
412 414
413 415
414 if __name__ == '__main__': 416 if __name__ == '__main__':
415 sys.exit(Main()) 417 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698