Navigation Menu

Skip to content

Commit

Permalink
apt yum: make 'check-install' option more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Aug 21, 2012
1 parent 34db8a8 commit 1f5ba61
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions packages/check-utility.sh
Expand Up @@ -11,6 +11,7 @@
CHROOT_ROOT=/var/lib/chroot
CHECK_ADDRESS=0
CHECK_INSTALL=0
CHECK_INSTALL_PACKAGE=groonga
ENABLE_REPOSITORY=0
DISABLE_REPOSITORY=0
INSTALL_SCRIPT=0
Expand Down Expand Up @@ -95,13 +96,11 @@ check_installed_groonga_packages ()
{
cat > check-deb-groonga.sh <<EOF
#!/bin/sh
dpkg -l | grep roonga
dpkg -l | grep mysql
dpkg -l | grep $CHECK_INSTALL_PACKAGE
EOF
cat > check-rpm-groonga.sh <<EOF
#!/bin/sh
rpm -qa | grep roonga
rpm -qa | grep mysql
rpm -qa | grep $CHECK_INSTALL_PACKAGE
EOF
for code in $CODES; do
for arch in $DEB_ARCHITECTURES; do
Expand Down Expand Up @@ -380,6 +379,15 @@ while [ $# -ne 0 ]; do
--check-install)
CHECK_INSTALL=1
shift
if [ ! -z "$1" ]; then
case $1 in
groonga|mroonga|roonga|mecab)
CHECK_INSTALL_PACKAGE=$1
;;
*)
;;
esac
fi
;;
--check-address)
CHECK_ADDRESS=1
Expand Down

0 comments on commit 1f5ba61

Please sign in to comment.