-
Notifications
You must be signed in to change notification settings - Fork 770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[READY] Improve Red Hat and CentOS detection #840
Conversation
Detect if the distribution is Red Hat or CentOS by reading the /etc/redhat-release file.
Codecov Report
@@ Coverage Diff @@
## master #840 +/- ##
=======================================
Coverage 94.84% 94.84%
=======================================
Files 79 79
Lines 5407 5407
Branches 170 170
=======================================
Hits 5128 5128
Misses 231 231
Partials 48 48 |
I like the distro dependent code quite a bit more now. Reviewed 2 of 2 files at r1. Comments from Reviewable |
Thanks for the PR! Review status: all files reviewed at latest revision, 1 unresolved discussion. cpp/CMakeLists.txt, line 221 at r1 (raw file):
This seems unrelated to the PR description. Do we know this change works? Comments from Reviewable |
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. cpp/CMakeLists.txt, line 221 at r1 (raw file): Previously, Valloric (Val Markovic) wrote…
The Gentoo part was from #837. As a Gentoo user, I can confirm that it works. Comments from Reviewable |
@zzbot r=bstaletic Thanks again! Review status: cpp/CMakeLists.txt, line 221 at r1 (raw file): Previously, bstaletic (Boris Staletic) wrote…
Thanks for confirming! Comments from Reviewable |
📌 Commit 039b248 has been approved by |
[READY] Improve Red Hat and CentOS detection Detecting that the distribution is Red Hat or CentOS by checking if the `/etc/redhat-release` file contains `Red Hat` (respectively `CentOS`) is more reliable than using `lsb_release` as this tool may not be available on a clean installation (e.g. CentOS 6.5). Tested on CentOS 6.5 and 7.3. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/840) <!-- Reviewable:end -->
☀️ Test successful - status-appveyor, status-travis |
[READY] Update ycmd Include the following changes: - PR ycm-core/ycmd#785: automatically find Rust sources through rustup; - PR ycm-core/ycmd#835: do not return canonical type if identical to type in C-family languages; - PR ycm-core/ycmd#837: improve support of system Boost and system libclang on Gentoo; - PR ycm-core/ycmd#840: improve Red Hat and CentOS detection; - PR ycm-core/ycmd#842: consider header file entries in compilation database; - PR ycm-core/ycmd#843: improve completion of include statements in C-family languages; - PR ycm-core/ycmd#851: rename completer options in installation script; - PR ycm-core/ycmd#855: only include one macOS toolchain. Update documentation according to PRs ycm-core/ycmd#785 and ycm-core/ycmd#851. Close #2379. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2804) <!-- Reviewable:end -->
Detecting that the distribution is Red Hat or CentOS by checking if the
/etc/redhat-release
file containsRed Hat
(respectivelyCentOS
) is more reliable than usinglsb_release
as this tool may not be available on a clean installation (e.g. CentOS 6.5).Tested on CentOS 6.5 and 7.3.
This change is