| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 """CBuildbot is wrapper around the build process used by the pre-flight queue""" | 7 """CBuildbot is wrapper around the build process used by the pre-flight queue""" |
| 8 | 8 |
| 9 import errno | 9 import errno |
| 10 import heapq | 10 import heapq |
| (...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 _IncrementalCheckout(buildroot) | 715 _IncrementalCheckout(buildroot) |
| 716 | 716 |
| 717 new_binhost = _GetPortageEnvVar(buildroot, board, _FULL_BINHOST) | 717 new_binhost = _GetPortageEnvVar(buildroot, board, _FULL_BINHOST) |
| 718 emptytree = (old_binhost and old_binhost != new_binhost) | 718 emptytree = (old_binhost and old_binhost != new_binhost) |
| 719 | 719 |
| 720 # Check that all overlays can be found. | 720 # Check that all overlays can be found. |
| 721 for path in rev_overlays: | 721 for path in rev_overlays: |
| 722 if not os.path.isdir(path): | 722 if not os.path.isdir(path): |
| 723 Die('Missing overlay: %s' % path) | 723 Die('Missing overlay: %s' % path) |
| 724 | 724 |
| 725 _DumpManifest(buildroot, options.url) | 725 if not options.chrome_rev: |
| 726 _DumpManifest(buildroot, options.url) |
| 726 | 727 |
| 727 if not os.path.isdir(chroot_path): | 728 if not os.path.isdir(chroot_path): |
| 728 _MakeChroot(buildroot) | 729 _MakeChroot(buildroot) |
| 729 | 730 |
| 730 if not os.path.isdir(boardpath): | 731 if not os.path.isdir(boardpath): |
| 731 _SetupBoard(buildroot, board=buildconfig['board']) | 732 _SetupBoard(buildroot, board=buildconfig['board']) |
| 732 | 733 |
| 733 # Perform uprev. If chrome_uprev is set, rev Chrome ebuilds. | 734 # Perform uprev. If chrome_uprev is set, rev Chrome ebuilds. |
| 734 if options.chrome_rev: | 735 if options.chrome_rev: |
| 735 chrome_atom_to_build = _MarkChromeAsStable(buildroot, tracking_branch, | 736 chrome_atom_to_build = _MarkChromeAsStable(buildroot, tracking_branch, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 except: | 792 except: |
| 792 # Send failure to master bot. | 793 # Send failure to master bot. |
| 793 if not buildconfig['master'] and buildconfig['important']: | 794 if not buildconfig['master'] and buildconfig['important']: |
| 794 cbuildbot_comm.PublishStatus(cbuildbot_comm.STATUS_BUILD_FAILED) | 795 cbuildbot_comm.PublishStatus(cbuildbot_comm.STATUS_BUILD_FAILED) |
| 795 | 796 |
| 796 raise | 797 raise |
| 797 | 798 |
| 798 | 799 |
| 799 if __name__ == '__main__': | 800 if __name__ == '__main__': |
| 800 main() | 801 main() |
| OLD | NEW |