servo/python
bors-servo 4ad08fff04
Auto merge of #24619 - gabrielmartin:gabrielmartin-fix-linuxmint-bootstrap, r=jdm
Adding a check for "Linux Mint" with a space

<!-- Please describe your changes on the following line: -->
While trying to run `./mach bootstrap` on Linux Mint I encountered the following error:
```
$ ./mach bootstrap
Traceback (most recent call last):
  File "./mach", line 103, in <module>
    main(sys.argv)
  File "./mach", line 31, in main
    sys.exit(mach_bootstrap.bootstrap_command_only(topdir))
  File "/home/gmartin/servo/python/mach_bootstrap.py", line 234, in bootstrap_command_only
    bootstrap(context, force)
  File "/home/gmartin/servo/python/servo/bootstrap.py", line 403, in bootstrap
    distrib, version = get_linux_distribution()
  File "/home/gmartin/servo/python/servo/bootstrap.py", line 391, in get_linux_distribution
    raise Exception('mach bootstrap does not support %s, please file a bug' % distrib)
Exception: mach bootstrap does not support Linux Mint, please file a bug
```

The solution is to add another check for Linux Mint which included a space in the distro name.

Question: Is it generally a requirement to open an issue if I also have the fix ready to go (as is the case here)?

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./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: -->
- [X] These changes do not require tests because I couldn't find any existing unit tests for [python/servo/bootstrap.py](python/servo/bootstrap.py)

<!-- 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. -->
2019-11-01 20:55:44 -04:00
..
servo Auto merge of #24619 - gabrielmartin:gabrielmartin-fix-linuxmint-bootstrap, r=jdm 2019-11-01 20:55:44 -04:00
tidy Fix call to flake8 broken when using distro module during test-tidy 2019-10-22 10:15:53 +01:00
mach_bootstrap.py Replace call to execfile(...) by call to exec(compile(open(...))) 2019-10-20 23:43:25 +01:00
README.md Fix styling for Markdown headers. 2016-05-02 22:20:49 -04:00
requirements-salt.txt Add a Salt bootstrapper 2017-01-17 11:01:09 -05:00
requirements.txt Use linux_distribution() from distro package instead of builtin platform module 2019-10-20 23:56:46 +01:00
tox.ini Added tox.ini 2016-05-08 12:10:48 +02:00

This directory contains various Python modules used to support servo development.

servo

servo-specific python code e.g. implementations of mach commands. This is the canonical repository for this code.

tidy

servo-tidy is used to check licenses, line lengths, whitespace, flake8 on Python files, lock file versions, and more.