Browse Source

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>
changes/84/633484/5
Bogdan Dobrelya 3 months ago
parent
commit
8b82f78e35
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      files/yum_update.sh

+ 1
- 1
files/yum_update.sh View File

@@ -5,7 +5,7 @@ set -eux
5 5
 packages_for_update=
6 6
 if [ -n "$1" ] && command -v repoquery >/dev/null 2>&1; then
7 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 9
     packages_for_update=$(comm -12 <(printf "%s\n" $installed) <(printf "%s\n" $available))
10 10
 fi
11 11
 

Loading…
Cancel
Save