MDEV-5986 MariaDB upgrade on CentOS 6 fails due to sed error

typo in the rpm server prein scriptlet
This commit is contained in:
Sergei Golubchik 2014-04-07 20:41:28 +02:00
parent be785cd85c
commit 64b9b65eb5

View File

@ -3,7 +3,7 @@
installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
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`
version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
myvendor='%{mysql_vendor}'