[Groonga-mysql-commit] mroonga/mroonga [master] package centos: copy MySQL RPMs

アーカイブの一覧に戻る

null+****@clear***** null+****@clear*****
2012年 6月 9日 (土) 16:10:34 JST


Kouhei Sutou	2012-06-09 16:10:34 +0900 (Sat, 09 Jun 2012)

  New Revision: 790aab99a6632f0c407fad1917f26f647f93aa9b

  Log:
    package centos: copy MySQL RPMs

  Modified files:
    packages/yum/build-in-chroot.sh

  Modified: packages/yum/build-in-chroot.sh (+8 -0)
===================================================================
--- packages/yum/build-in-chroot.sh    2012-06-09 15:48:40 +0900 (b2bf279)
+++ packages/yum/build-in-chroot.sh    2012-06-09 16:10:34 +0900 (417f025)
@@ -141,6 +141,14 @@ build()
     run mkdir -p $source_pool_dir
     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_default' \
+           ${CHROOT_BASE}/$target/tmp/${PACKAGE}.spec | \
+           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
+    fi
 
     dependencies_dir=${build_user_dir}/dependencies
     dependencies_rpm_dir=${dependencies_dir}/RPMS




Groonga-mysql-commit メーリングリストの案内
アーカイブの一覧に戻る