mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Spec file polishing: Handle 'MySQL-*' and 'mysql-*', part 1
This commit is contained in:
@ -581,8 +581,13 @@ fi
|
|||||||
# Check if we can safely upgrade. An upgrade is only safe if it's from one
|
# Check if we can safely upgrade. An upgrade is only safe if it's from one
|
||||||
# of our RPMs in the same version family.
|
# of our RPMs in the same version family.
|
||||||
|
|
||||||
|
# Handle both ways of spelling the capability.
|
||||||
installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
|
installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
|
||||||
|
if [ $? -ne 0 -o -z "$installed" ]; then
|
||||||
|
installed=`rpm -q --whatprovides MySQL-server 2> /dev/null`
|
||||||
|
fi
|
||||||
if [ $? -eq 0 -a -n "$installed" ]; then
|
if [ $? -eq 0 -a -n "$installed" ]; then
|
||||||
|
installed=`echo $installed | sed 's/\([^ ]*\) .*/\1/'` # Tests have shown duplicated package names
|
||||||
vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1`
|
vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1`
|
||||||
version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
|
version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
|
||||||
myoldvendor='%{mysql_old_vendor}'
|
myoldvendor='%{mysql_old_vendor}'
|
||||||
|
Reference in New Issue
Block a user