Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
355a53b9
Commit
355a53b9
authored
Jul 26, 2012
by
Joerg Bruehe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spec file polishing: Handle 'MySQL-*' and 'mysql-*', part 1
parent
f8e1d431
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+5
-0
No files found.
support-files/mysql.spec.sh
View file @
355a53b9
...
@@ -581,8 +581,13 @@ fi
...
@@ -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}'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment