Navigation Menu

Skip to content

Commit

Permalink
yum: use mysql_version_default instead of mysql_version
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed May 24, 2012
1 parent 0133abf commit d56dfd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/yum/build-in-chroot.sh
Expand Up @@ -145,9 +145,9 @@ build()
run cp -p $rpm_dir/*-${VERSION}* $binary_pool_dir
run cp -p $srpm_dir/*-${VERSION}* $source_pool_dir
if [ $distribution = "centos" -a $distribution_version -eq 5 ]; then
mysql_version=$(grep '%define mysql_version' \
mysql_version=$(grep '%define mysql_version_default' \
${CHROOT_BASE}/$target/tmp/${PACKAGE}.spec | \
sed -e 's/%define mysql_version //g' | \
sed -e 's/%define mysql_version_default //g' | \
tail -1)
run cp -p $rpm_dir/MySQL-*-${mysql_version}* $binary_pool_dir
run cp -p $srpm_dir/MySQL-${mysql_version}* $source_pool_dir
Expand Down

0 comments on commit d56dfd0

Please sign in to comment.