MDEV-26568 RPM logic prohibiting server major upgrade no longer works as expected

prevent %{VERSION} in the shell command to be expanded by rpmbuild
This commit is contained in:
Sergei Golubchik 2022-07-04 20:00:25 +02:00
parent 2f3f1cd05b
commit 6313702278

View file

@ -4,8 +4,8 @@
installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
if [ $? -eq 0 -a -n "$installed" ]; then
installed=`echo "$installed"|sed -n 1p`
vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1 | sed 's/Monty Program AB/MariaDB Foundation/'`
version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
vendor=`rpm -q --queryformat='%''{VENDOR}' "$installed" 2>&1 | sed 's/Monty Program AB/MariaDB Foundation/'`
version=`rpm -q --queryformat='%''{VERSION}' "$installed" 2>&1`
myvendor='%{mysql_vendor}'
myversion='%{mysqlversion}'