Navigation Menu

Skip to content

Commit

Permalink
[yum] support CentOS 6.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 15, 2011
1 parent 61ad2f0 commit 9533f26
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
29 changes: 16 additions & 13 deletions yum/build-in-chroot.sh
Expand Up @@ -79,15 +79,8 @@ build()
{
architecture=$1
distribution=$2
distribution_version=$3

case $distribution in
fedora)
distribution_version=15
;;
centos)
distribution_version=5
;;
esac
target=${distribution}-${distribution_version}-${architecture}
base_dir=${CHROOT_BASE}/${target}
if [ ! -d $base_dir ]; then
Expand Down Expand Up @@ -138,11 +131,21 @@ build()

for architecture in $ARCHITECTURES; do
for distribution in $DISTRIBUTIONS; do
if test "$parallel" = "yes"; then
build $architecture $distribution &
else
build $architecture $distribution
fi;
case $distribution in
fedora)
distribution_versions="15"
;;
centos)
distribution_versions="5 6"
;;
esac
for distribution_version in $distribution_versions; do
if test "$parallel" = "yes"; then
build $architecture $distribution $distribution_version &
else
build $architecture $distribution $distribution_version
fi;
done;
done;
done

Expand Down
1 change: 1 addition & 0 deletions yum/mysql-groonga-depended-packages
Expand Up @@ -12,3 +12,4 @@ wget
ncurses-devel
sudo
pkgconfig
tar

0 comments on commit 9533f26

Please sign in to comment.