ci: Use distro-sync instead of upgrade
This should help ensure that if installing `glibc-devel` downgrades `glibc` we'll run through our hackround for <https://bugzilla.redhat.com/show_bug.cgi?id=1394862>. Closes: #1190 Approved by: jlebon
This commit is contained in:
parent
ab200495a8
commit
1036cc8084
|
|
@ -2,12 +2,13 @@
|
||||||
|
|
||||||
pkg_upgrade() {
|
pkg_upgrade() {
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1483553
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1483553
|
||||||
if ! yum -y upgrade 2>err.txt; then
|
ecode=0
|
||||||
ecode=$?
|
yum -y distro-sync 2>err.txt || ecode=$?
|
||||||
if grep -q -F -e "BDB1539 Build signature doesn't match environment" err.txt; then
|
if test ${ecode} '!=' 0 && grep -q -F -e "BDB1539 Build signature doesn't match environment" err.txt; then
|
||||||
rpm --rebuilddb
|
rpm --rebuilddb
|
||||||
yum -y upgrade
|
yum -y distro-sync
|
||||||
else
|
else
|
||||||
|
if test ${ecode} '!=' 0; then
|
||||||
cat err.txt
|
cat err.txt
|
||||||
exit ${ecode}
|
exit ${ecode}
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue