Skip to content
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

Merged
merged 1 commit into from
Sep 24, 2017

Conversation

micbou
Copy link
Collaborator

@micbou micbou commented Sep 21, 2017

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.


This change is Reviewable

Detect if the distribution is Red Hat or CentOS by reading the
/etc/redhat-release file.
@codecov-io
Copy link

codecov-io commented Sep 21, 2017

Codecov Report

Merging #840 into master will not change coverage.
The diff coverage is n/a.

@@           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

@bstaletic
Copy link
Collaborator

I like the distro dependent code quite a bit more now.

:lgtm:


Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@Valloric
Copy link
Member

:lgtm: with minor comment.

Thanks for the PR!


Review status: all files reviewed at latest revision, 1 unresolved discussion.


cpp/CMakeLists.txt, line 221 at r1 (raw file):

endif()

# Gentoo detection. Needed because Gentoo is a special snowflake that puts

This seems unrelated to the PR description. Do we know this change works?


Comments from Reviewable

@bstaletic
Copy link
Collaborator

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…

This seems unrelated to the PR description. Do we know this change works?

The Gentoo part was from #837. As a Gentoo user, I can confirm that it works.


Comments from Reviewable

@Valloric
Copy link
Member

@zzbot r=bstaletic

Thanks again!


Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.


cpp/CMakeLists.txt, line 221 at r1 (raw file):

Previously, bstaletic (Boris Staletic) wrote…

The Gentoo part was from #837. As a Gentoo user, I can confirm that it works.

Thanks for confirming!


Comments from Reviewable

@zzbot
Copy link
Contributor

zzbot commented Sep 24, 2017

📌 Commit 039b248 has been approved by bstaletic

@zzbot
Copy link
Contributor

zzbot commented Sep 24, 2017

⌛ Testing commit 039b248 with merge 5ea657c...

zzbot added a commit that referenced this pull request Sep 24, 2017
[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 -->
@zzbot
Copy link
Contributor

zzbot commented Sep 24, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: bstaletic
Pushing 5ea657c to master...

@zzbot zzbot merged commit 039b248 into ycm-core:master Sep 24, 2017
@micbou micbou deleted the redhat-centos-detection branch September 25, 2017 21:28
zzbot added a commit to ycm-core/YouCompleteMe that referenced this pull request Oct 10, 2017
[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 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants