Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upadd RSPM code detection for CentOS/RHEL/Fedora #81
Conversation
|
Nice. Looks promising. Now:
|
And I have it in mind, but I thought that "Could you help me for Fedora and maybe CentOS?" and a link to this file was an invitation to this.
|
|
Awesome. With that I suggest we a) reorder and b) shorten. Mocked code (about to go running, a few hours later than I meant) if ("VERSION_CODENAME" %in% rownames(osrel))
code <- osrel["VERSION_CODENAME", "value"]
else if ("REDHAT_SUPPORT_PRODUCT" %in% rownames(osrel)) {
# 'centos7' for CentOS/RHEL 7, 'centos8' for CentOS/RHEL 8 and Fedora
ver <- osrel["REDHAT_SUPPORT_PRODUCT_VERSION", "value"])
code <- paste0("centos", if (ver=="7") 7 else ver)
} |
|
Note that |
|
Thanks that's why I suggested the output and that is what I looked for -- must have missed it. But I was just out running and realized that in the fedora we put '32' in there. The else may need to be '8'. Edit And looking at your patch I see you reflect that. |
131a401
into
eddelbuettel:master
We need:
centos7for CentOS 7 and RHEL 7.centos8for CentOS 8, RHEL 8 and all Fedora.