summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-07-05 13:57:34 -0400
committerGitHub <noreply@github.com>2016-07-05 13:57:34 -0400
commitc903318b32c33a04b420e2240e15fc20cf184aee (patch)
tree92805b06bc4eb469857fcb25310d1de9aea02239
parent6bddc67edcf70cec619c7d89ffd25a7336fece9a (diff)
parent7ebdbd1e74a38fb892cd0d3ee0ba47ec47c8b010 (diff)
downloadopenshift-c903318b32c33a04b420e2240e15fc20cf184aee.tar.gz
openshift-c903318b32c33a04b420e2240e15fc20cf184aee.tar.bz2
openshift-c903318b32c33a04b420e2240e15fc20cf184aee.tar.xz
openshift-c903318b32c33a04b420e2240e15fc20cf184aee.zip
Merge pull request #2120 from sdodson/fix_rpmversion
Fix dnf variant of rpm_versions.sh
-rw-r--r--playbooks/common/openshift-cluster/upgrades/files/rpm_versions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/files/rpm_versions.sh b/playbooks/common/openshift-cluster/upgrades/files/rpm_versions.sh
index 8d7543f3c..7bf249742 100644
--- a/playbooks/common/openshift-cluster/upgrades/files/rpm_versions.sh
+++ b/playbooks/common/openshift-cluster/upgrades/files/rpm_versions.sh
@@ -1,7 +1,7 @@
#!/bin/bash
if [ `which dnf 2> /dev/null` ]; then
installed=$(dnf repoquery --installed --latest-limit 1 -d 0 --qf '%{version}-%{release}' "${@}" 2> /dev/null)
- installed=$(dnf repoquery --available --latest-limit 1 -d 0 --qf '%{version}-%{release}' "${@}" 2> /dev/null)
+ available=$(dnf repoquery --available --latest-limit 1 -d 0 --qf '%{version}-%{release}' "${@}" 2> /dev/null)
else
installed=$(repoquery --plugins --pkgnarrow=installed --qf '%{version}-%{release}' "${@}" 2> /dev/null)
available=$(repoquery --plugins --pkgnarrow=available --qf '%{version}-%{release}' "${@}" 2> /dev/null)