Navigation Menu

Skip to content

Commit

Permalink
apt yum: accept 'all' as the value of parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Aug 28, 2012
1 parent 5203cc8 commit 1859f26
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions packages/check-utility.sh
Expand Up @@ -431,22 +431,38 @@ while [ $# -ne 0 ]; do
;;
--code)
shift
CODES=$1
if [ "$1" = "all" ]; then
setup_codes
else
CODES=$1
fi
shift
;;
--code-arch)
shift
DEB_ARCHITECTURES=$1
if [ "$1" = "all" ]; then
setup_deb_architectures
else
DEB_ARCHITECTURES=$1
fi
shift
;;
--dist)
shift
DISTRIBUTIONS=$1
if [ "$1" = "all" ]; then
setup_distributions
else
DISTRIBUTIONS=$1
fi
shift
;;
--dist-arch)
shift
RPM_ARCHITECTURES=$1
if [ "$1" = "all" ]; then
setup_rpm_architectures
else
RPM_ARCHITECTURES=$1
fi
shift
;;
*)
Expand All @@ -455,11 +471,8 @@ while [ $# -ne 0 ]; do
esac
done

setup_distributions
setup_rpm_architectures

setup_codes
setup_deb_architectures
setup_rpm_architectures

if [ $CHECK_INSTALL -ne 0 ]; then
check_installed_groonga_packages
Expand Down

0 comments on commit 1859f26

Please sign in to comment.