OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # TODO(hinoka): Use logging. | 6 # TODO(hinoka): Use logging. |
7 | 7 |
8 import cStringIO | 8 import cStringIO |
9 import codecs | 9 import codecs |
10 import collections | 10 import collections |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 print 'Dropping %s:%s from custom deps' % (deps_name, deps_value) | 646 print 'Dropping %s:%s from custom deps' % (deps_name, deps_value) |
647 else: | 647 else: |
648 new_custom_deps[deps_name] = deps_value | 648 new_custom_deps[deps_name] = deps_value |
649 solution['custom_deps'] = new_custom_deps | 649 solution['custom_deps'] = new_custom_deps |
650 | 650 |
651 if first_solution: | 651 if first_solution: |
652 root = parsed_path | 652 root = parsed_path |
653 first_solution = False | 653 first_solution = False |
654 | 654 |
655 solution['managed'] = False | 655 solution['managed'] = False |
656 # We don't want gclient to be using a safesync URL. Instead it should | |
657 # using the lkgr/lkcr branch/tags. | |
658 if 'safesync_url' in solution: | |
659 print 'Removing safesync url %s from %s' % (solution['safesync_url'], | |
660 parsed_path) | |
661 del solution['safesync_url'] | |
662 return solutions, root, buildspec | 656 return solutions, root, buildspec |
663 | 657 |
664 | 658 |
665 def remove(target): | 659 def remove(target): |
666 """Remove a target by moving it into build.dead.""" | 660 """Remove a target by moving it into build.dead.""" |
667 dead_folder = path.join(BUILDER_DIR, 'build.dead') | 661 dead_folder = path.join(BUILDER_DIR, 'build.dead') |
668 if not path.exists(dead_folder): | 662 if not path.exists(dead_folder): |
669 os.makedirs(dead_folder) | 663 os.makedirs(dead_folder) |
670 os.rename(target, path.join(dead_folder, uuid.uuid4().hex)) | 664 os.rename(target, path.join(dead_folder, uuid.uuid4().hex)) |
671 | 665 |
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1774 except Exception: | 1768 except Exception: |
1775 # Unexpected failure. | 1769 # Unexpected failure. |
1776 emit_flag(options.flag_file) | 1770 emit_flag(options.flag_file) |
1777 raise | 1771 raise |
1778 else: | 1772 else: |
1779 emit_flag(options.flag_file) | 1773 emit_flag(options.flag_file) |
1780 | 1774 |
1781 | 1775 |
1782 if __name__ == '__main__': | 1776 if __name__ == '__main__': |
1783 sys.exit(main()) | 1777 sys.exit(main()) |
OLD | NEW |