summaryrefslogtreecommitdiff
path: root/support-files
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2022-07-04 20:00:25 +0200
committerSergei Golubchik <serg@mariadb.org>2022-07-05 21:09:59 +0200
commit631370227835a05442ede816bf927ce8b5261446 (patch)
tree90778b2ab1fad043b0127a46198c9921ac6caee8 /support-files
parent2f3f1cd05bb2bec5fad8db6f26b2c663bf680821 (diff)
downloadmariadb-git-631370227835a05442ede816bf927ce8b5261446.tar.gz
MDEV-26568 RPM logic prohibiting server major upgrade no longer works as expected
prevent %{VERSION} in the shell command to be expanded by rpmbuild
Diffstat (limited to 'support-files')
-rw-r--r--support-files/rpm/server-prein.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/support-files/rpm/server-prein.sh b/support-files/rpm/server-prein.sh
index 9f8d1229bfd..d6f77c29e49 100644
--- a/support-files/rpm/server-prein.sh
+++ b/support-files/rpm/server-prein.sh
@@ -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}'