Do not fail when repoquery is not installed
A good chunk of container images try to be as slim as possible and as a consequence do not have repoquery binary which is used to limit the packages to a given repo. This commit makes the playbook more against these containers and installs all available updates when repoquery is not installed, the same as when we don't restrict the list of repositories to get updates from. Change-Id: I81e5cd0edae56c1535a2e4dcc639ec71055b10d2
This commit is contained in:
parent
f9e8e93849
commit
45ec917d1d
|
@ -10,7 +10,7 @@ if [ -f /tmp/host_packages.json ]; then
|
|||
fi
|
||||
|
||||
packages_for_update=
|
||||
if [ -n "$1" ]; then
|
||||
if [ -n "$1" ] && command -v repoquery >/dev/null 2>&1; then
|
||||
packages_for_update=("$(repoquery --disablerepo='*' --enablerepo=$1 --qf %{NAME} -a)")
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue