Browse Source

Fix dnf variant of rpm_versions.sh

Scott Dodson 8 years ago
parent
commit
7ebdbd1e74
1 changed files with 1 additions and 1 deletions
  1. 1 1
      playbooks/common/openshift-cluster/upgrades/files/rpm_versions.sh

+ 1 - 1
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)