servo: Merge #16389 - Allow bootstrapping on Debian (from aneeshusa:support-debian-for-mach-bootstrap); r=jdm
<!-- Please describe your changes on the following line: --> This is needed for servo/saltfs#631, since the Travis builders are detected as `'debian'` for some reason. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because the test will be in saltfs <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 2e82d98afff696dfd574087a0806383a6abc4c78
This commit is contained in:
@@ -270,7 +270,13 @@ def bootstrap(context, force=False):
|
||||
bootstrapper = windows_msvc
|
||||
elif "linux-gnu" in host_triple():
|
||||
distro, version, _ = platform.linux_distribution()
|
||||
if distro in ['CentOS', 'CentOS Linux', 'Fedora', 'Ubuntu']:
|
||||
if distro.lower() in [
|
||||
'centos',
|
||||
'centos linux',
|
||||
'debian',
|
||||
'fedora',
|
||||
'ubuntu',
|
||||
]:
|
||||
context.distro = distro
|
||||
bootstrapper = salt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user