summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2016-01-26 15:22:21 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2016-01-26 15:22:21 -0500
commitc112187063a4808658b408ac1a1a5d42a5ac1e3a (patch)
tree6e12afc5656f2ea7d1db2b84cad12a2520e3b015 /playbooks
parent87c4521672ea5d5bf34943daa05e372433f62ccb (diff)
parentf8d11d94210e3677a70091b4146da445d557b615 (diff)
downloadopenshift-c112187063a4808658b408ac1a1a5d42a5ac1e3a.tar.gz
openshift-c112187063a4808658b408ac1a1a5d42a5ac1e3a.tar.bz2
openshift-c112187063a4808658b408ac1a1a5d42a5ac1e3a.tar.xz
openshift-c112187063a4808658b408ac1a1a5d42a5ac1e3a.zip
Merge pull request #1274 from rassie/patch-1
Fix checking for update package availability
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/files/versions.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/files/versions.sh b/playbooks/common/openshift-cluster/upgrades/files/versions.sh
index b46407ed7..3a1a8ebb1 100644
--- a/playbooks/common/openshift-cluster/upgrades/files/versions.sh
+++ b/playbooks/common/openshift-cluster/upgrades/files/versions.sh
@@ -1,8 +1,8 @@
#!/bin/bash
-yum_installed=$(yum list installed -e 0 -q "$@" 2>&1 | tail -n +2 | awk '{ print $2 }' | tr '\n' ' ')
+yum_installed=$(yum list installed -e 0 -q "$@" 2>&1 | tail -n +2 | awk '{ print $2 }' | sort -r | tr '\n' ' ')
-yum_available=$(yum list available -e 0 -q "$@" 2>&1 | tail -n +2 | grep -v 'el7ose' | awk '{ print $2 }' | tr '\n' ' ')
+yum_available=$(yum list available -e 0 -q "$@" 2>&1 | tail -n +2 | grep -v 'el7ose' | awk '{ print $2 }' | sort -r | tr '\n' ' ')
echo "---"
echo "curr_version: ${yum_installed}"