Commit 63137022 authored by Sergei Golubchik's avatar Sergei Golubchik

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

prevent %{VERSION} in the shell command to be expanded by rpmbuild
parent 2f3f1cd0
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
installed=`rpm -q --whatprovides mysql-server 2> /dev/null` installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
if [ $? -eq 0 -a -n "$installed" ]; then if [ $? -eq 0 -a -n "$installed" ]; then
installed=`echo "$installed"|sed -n 1p` installed=`echo "$installed"|sed -n 1p`
vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1 | sed 's/Monty Program AB/MariaDB Foundation/'` vendor=`rpm -q --queryformat='%''{VENDOR}' "$installed" 2>&1 | sed 's/Monty Program AB/MariaDB Foundation/'`
version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1` version=`rpm -q --queryformat='%''{VERSION}' "$installed" 2>&1`
myvendor='%{mysql_vendor}' myvendor='%{mysql_vendor}'
myversion='%{mysqlversion}' myversion='%{mysqlversion}'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment