summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBogdan Dobrelya <bdobreli@redhat.com>2019-01-28 12:53:14 +0100
committerBogdan Dobrelya <bdobreli@redhat.com>2019-01-29 12:15:41 +0100
commit8b82f78e359b016a76eba6331b5b27cdf8fd6c68 (patch)
treeec66abe7ed6d80c695ac643fc7d0a840f2dc1573
parentd7d7592dc7d0c219ac621f3eb4f06aaf5681fa1e (diff)
Track obsoleted packages replacements for updates
Co-authored-by: Yatin Karel <ykarel@redhat.com> Change-Id: I5dfe91238898208aedfeb6623c62b97a9398cecb Closes-bug: #1813533 Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
Notes
Notes (review): Code-Review+2: Steve Baker <sbaker@redhat.com> Workflow+1: Juan Antonio Osorio Robles <jaosorior@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 30 Jan 2019 12:23:41 +0000 Reviewed-on: https://review.openstack.org/633484 Project: openstack/ansible-role-tripleo-modify-image Branch: refs/heads/master
-rwxr-xr-xfiles/yum_update.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/yum_update.sh b/files/yum_update.sh
index f2ea8eb..f5918ee 100755
--- a/files/yum_update.sh
+++ b/files/yum_update.sh
@@ -5,7 +5,7 @@ set -eux
5packages_for_update= 5packages_for_update=
6if [ -n "$1" ] && command -v repoquery >/dev/null 2>&1; then 6if [ -n "$1" ] && command -v repoquery >/dev/null 2>&1; then
7 installed=$(rpm -qa --qf "%{NAME}\n" | sort) 7 installed=$(rpm -qa --qf "%{NAME}\n" | sort)
8 available=$(repoquery --disablerepo='*' --enablerepo=$1 --qf %{NAME} -a | sort) 8 available=$(repoquery --provides --disablerepo='*' --enablerepo=$1 --qf %{NAME} -a | cut -d= -f1 | sort)
9 packages_for_update=$(comm -12 <(printf "%s\n" $installed) <(printf "%s\n" $available)) 9 packages_for_update=$(comm -12 <(printf "%s\n" $installed) <(printf "%s\n" $available))
10fi 10fi
11 11