diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2015-11-06 13:21:54 -0500 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2015-11-06 13:21:54 -0500 |
commit | 050209f3c86a9dccefdf8b9f05898d1503254a2c (patch) | |
tree | 3c0eb820efd78f4607ddccabe6649a6a8e6ca492 /playbooks/adhoc/upgrades/files | |
parent | c728a2109e41ef60536d8ef82ae4966b0268ca87 (diff) | |
download | openshift-050209f3c86a9dccefdf8b9f05898d1503254a2c.tar.gz openshift-050209f3c86a9dccefdf8b9f05898d1503254a2c.tar.bz2 openshift-050209f3c86a9dccefdf8b9f05898d1503254a2c.tar.xz openshift-050209f3c86a9dccefdf8b9f05898d1503254a2c.zip |
Fix issues related to upgrade packages being unavailable
Diffstat (limited to 'playbooks/adhoc/upgrades/files')
-rw-r--r-- | playbooks/adhoc/upgrades/files/versions.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/playbooks/adhoc/upgrades/files/versions.sh b/playbooks/adhoc/upgrades/files/versions.sh index 01ea1d91a..f90719cab 100644 --- a/playbooks/adhoc/upgrades/files/versions.sh +++ b/playbooks/adhoc/upgrades/files/versions.sh @@ -1,7 +1,9 @@ #!/bin/bash -yum_installed=$(yum list installed "$@" | tail -n +2 | grep -v 'Installed Packages' | grep -v 'Red Hat Subscription Management' | awk '{ print $2 }' | tr '\n' ' ') -yum_available=$(yum list available "$@" | tail -n +2 | grep -v 'Available Packages' | grep -v 'Red Hat Subscription Management' | grep -v 'el7ose' | awk '{ print $2 }' | tr '\n' ' ') +yum_installed=$(yum list installed "$@" 2>&1 | tail -n +2 | grep -v 'Installed Packages' | grep -v 'Red Hat Subscription Management' | grep -v 'Error:' | awk '{ print $2 }' | tr '\n' ' ') + +yum_available=$(yum list available "$@" 2>&1 | tail -n +2 | grep -v 'Available Packages' | grep -v 'Red Hat Subscription Management' | grep -v 'el7ose' | grep -v 'Error:' | awk '{ print $2 }' | tr '\n' ' ') + echo "---" echo "curr_version: ${yum_installed}" |