Merge "Do not fail when repoquery is not installed"

This commit is contained in:
Zuul 2018-07-12 12:17:10 +00:00 committed by Gerrit Code Review
commit 68703e732d
1 changed files with 1 additions and 1 deletions

View File

@ -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