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 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 _IncrementalCheckout(buildroot) | 725 _IncrementalCheckout(buildroot) |
726 | 726 |
727 new_binhost = _GetPortageEnvVar(buildroot, board, _FULL_BINHOST) | 727 new_binhost = _GetPortageEnvVar(buildroot, board, _FULL_BINHOST) |
728 emptytree = (old_binhost and old_binhost != new_binhost) | 728 emptytree = (old_binhost and old_binhost != new_binhost) |
729 | 729 |
730 # Check that all overlays can be found. | 730 # Check that all overlays can be found. |
731 for path in rev_overlays: | 731 for path in rev_overlays: |
732 if not os.path.isdir(path): | 732 if not os.path.isdir(path): |
733 Die('Missing overlay: %s' % path) | 733 Die('Missing overlay: %s' % path) |
734 | 734 |
735 if not os.path.isdir(chroot_path): | 735 if not os.path.isdir(chroot_path) or buildconfig['chroot_replace']: |
736 _MakeChroot(buildroot, buildconfig['chroot_replace']) | 736 _MakeChroot(buildroot, buildconfig['chroot_replace']) |
737 | 737 |
738 if not os.path.isdir(boardpath): | 738 if not os.path.isdir(boardpath): |
739 _SetupBoard(buildroot, board=buildconfig['board']) | 739 _SetupBoard(buildroot, board=buildconfig['board']) |
740 | 740 |
741 # Perform chrome uprev. | 741 # Perform chrome uprev. |
742 if options.chrome_rev: | 742 if options.chrome_rev: |
743 chrome_atom_to_build = _MarkChromeAsStable(buildroot, tracking_branch, | 743 chrome_atom_to_build = _MarkChromeAsStable(buildroot, tracking_branch, |
744 options.chrome_rev, board) | 744 options.chrome_rev, board) |
745 # Perform other uprevs. | 745 # Perform other uprevs. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 except: | 805 except: |
806 # Send failure to master bot. | 806 # Send failure to master bot. |
807 if not buildconfig['master'] and buildconfig['important']: | 807 if not buildconfig['master'] and buildconfig['important']: |
808 cbuildbot_comm.PublishStatus(cbuildbot_comm.STATUS_BUILD_FAILED) | 808 cbuildbot_comm.PublishStatus(cbuildbot_comm.STATUS_BUILD_FAILED) |
809 | 809 |
810 raise | 810 raise |
811 | 811 |
812 | 812 |
813 if __name__ == '__main__': | 813 if __name__ == '__main__': |
814 main() | 814 main() |
OLD | NEW |