Yum in RHEL <=6.6 doesn't have --downloadonly
Alibloke opened this issue · 2 comments
When running Auter on a RHEL 6.6 device yum errored out:
WARNING: downloadonly option is not available
When I ran a yum install yum-plugin-downloadonly it upgraded yum instead as a later version of yum includes the downloadonly option.
My advice would be to require a specific version of yum, however I don't know exactly which version included the downloadonly option. The best I can give you is the version of yum that didn't work:
yum-3.2.29-60.el6.noarch
@Alibloke That is exactly what the warning was added for. It should not be a hard failure unless you are specifically using the "ONLYINSTALLFROMPREP" option. We should probably build in a hard failure in this block:
Lines 87 to 89 in 398ba8b
Something along the lines of:
if [[ "${ONLYINSTALLFROMPREP}" == "yes" ]]; then
logit "ERROR: ONLYINSTALLFROMPREP set to 'yes' and --downloadonly option is not available"
else
logit "WARNING: downloadonly option is not available"
fi
Auter does work with older versions of yum and the downloadonly option is not fundamental requirement for auter to work so adding a version dependency for yum seems a bit limiting.
That said, assuming your case, auter will not download the updates due to the downloadonly option not being available, this will currently not be a failure. Following that, when auter --apply
is run, there will be no updates available and there will be no failure. This is something we will need to look at adjusting.
Going to close this out since #200 was merged.