-
Notifications
You must be signed in to change notification settings - Fork 2
pkg_tool: Add ability to install packages based off OS version #110
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
base: main
Are you sure you want to change the base?
Conversation
…_config Fixes a bug where installing JQ for the first time causes messages to reach stdout, which messes with the list of packages to install.
Adds the ability to specify dependencies on an OS version level. The
previous way of working with dependencies is still supported ("osname":
[<list of packages]) and will work as expected. This adds support for
checking the full version, major version, and then a default set of
packages for an OS. An example is below
```json
"rhel": {
"9.6": ["gcc"],
"9": ["g++"],
"default": ["gawk"]
}
```
That will install gcc on 9.6, install g++ on 9.* versions (except 9.6),
and then gawk on all versions (except 9.*).
|
This relates to RPOPC-672 |
package_tool
Outdated
| if [[ -n "$wrapper_config" ]]; then | ||
| wrapper_pkgs=$(parse_json $wrapper_config $running_os) | ||
| if [[ $? -ne 0 ]]; then | ||
| exit 1 |
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.
Error message.
package_tool
Outdated
| fi | ||
| wrapper_pip=$(parse_json $wrapper_config pip) | ||
| if [[ $? -ne 0 ]]; then | ||
| exit $? |
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.
Error message.
dvalinrh
left a comment
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.
Documentation updates required.
Error messaging when exiting out.
Description
This adds the ability for
package_toolto install packages based off the OS version instead of solely the OS vendor. This will not change the behavior of only having a list of packages for a vendor.Additionally, the version number can be done via only a major (to cover stuff like the entirety of RHEL 9) or a major/minor version pair to handle specific versions if needed.
Before/After Comparison
Before
The wrapper_config can only differentiate based off the OS vendor.
After
The wrapper_config can differentiate based off OS Vendor and OS version.
Clerical Stuff
This closes #109
Relates to JIRA: RPOPC-672