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

Fixes #29728 - fix epel check if any misconfigured repo present #347

Closed

Conversation

patilsuraj767
Copy link
Contributor

No description provided.

@theforeman-bot
Copy link
Member

Issues: #29728

@@ -16,7 +16,8 @@ def run
end

def epel_enabled?
system_repos = execute("yum repolist enabled -d 6 -e 0| grep -E 'Repo-baseurl|Repo-id'")
cmd = "grep -ir --no-filename --include=\*.repo -E 'baseurl|metalink' /etc/yum.repos.d/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you use this grep command we end up showing epel enabled even if repository is disabled, because we are not checking for enabled flag ?
Another challenge is, one .repo file can have multiple repos, so in that case I think you end up searching the enabled flag ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@upadhyeammit yeah, My bad. :P
You are right. I forgot to check "is enabled" part.
I will re-think and will submit the PR again.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@patilsuraj767 any new thoughts on this ?

@upadhyeammit
Copy link
Contributor

As this pull request is stale to current state of the repository I am closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants