-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
Rocky does not have a separate venv package #665
Conversation
9d4bef8
to
6266172
Compare
@@ -35,7 +35,7 @@ | |||
## | |||
## CentOS has no extra package for venv | |||
## | |||
unless $facts['os']['name'] == 'CentOS' { | |||
unless $facts['os']['name'] in ['CentOS', 'Rocky'] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably true for Alma as well? Can't we check for os family RedHat instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have currently no way to check Alma nor RH. I suspect it is true, but I have no way to find out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I must not lie. It is also true for alma. Redhat has recently closed its source, unable to check them. Do you know the familyname for alma?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding "AlmaLinux" and "Rocky" to metadata.json
(using version "8" I guess?) will run the acceptance tests against these OS and report success / failure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggesting to use OS family instead
unless $facts['os']['family'] == 'RedHat'
should work for RHEL, CentOS Stream, AlmaLinux, RockyLinux,...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. will fix, update, change today or friday.
It seems that this is superseded by #677, correct? |
Thanks for the confirmation, then I'll close this one, as #677 is already merged and fixes the issues described here in a general manner for the whole RedHat family. Thanks a lot for your contribution! |
This PR fixes the
ensure => present
on the python-venv package on rocky linux. It does, like CentOS, not have a seperate venv package.