OLD | NEW |
---|---|
1 # Copyright (C) 2011 Google Inc. All rights reserved. | 1 # Copyright (C) 2011 Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 debug_builder_name = None | 86 debug_builder_name = None |
87 for builder_name, builder_info in _exact_matches.items(): | 87 for builder_name, builder_info in _exact_matches.items(): |
88 if builder_info['port_name'] == target_port_name: | 88 if builder_info['port_name'] == target_port_name: |
89 if 'dbg' in builder_name: | 89 if 'dbg' in builder_name: |
90 debug_builder_name = builder_name | 90 debug_builder_name = builder_name |
91 else: | 91 else: |
92 return builder_name | 92 return builder_name |
93 return debug_builder_name | 93 return debug_builder_name |
94 | 94 |
95 | 95 |
96 def builder_name_for_specifiers(version, build_type): | |
bokan
2016/03/04 03:44:10
It seems like this would be needed elsewhere, does
| |
97 for builder_name, info in _exact_matches.items(): | |
98 specifiers = info['specifiers'] | |
99 if specifiers[0].lower() == version.lower() and specifiers[1].lower() == build_type.lower(): | |
100 return builder_name | |
101 | |
102 return '' | |
103 | |
104 | |
96 def builder_path_for_port_name(port_name): | 105 def builder_path_for_port_name(port_name): |
97 builder_path_from_name(builder_name_for_port_name(port_name)) | 106 builder_path_from_name(builder_name_for_port_name(port_name)) |
OLD | NEW |