Allow individual services to specify dependencies. Also fixes lp897879: https://bugs.launchpad.net/bugs/897879

Change-Id: Ib9de4571501771f12b1aeb6550e94eea03643290
This commit is contained in:
Anthony Young 2011-12-01 13:44:51 -08:00
parent 4d4d96dd20
commit ef4e5367d2

View file

@ -386,6 +386,10 @@ function get_packages() {
local service
for service in ${ENABLED_SERVICES//,/ }; do
# Allow individual services to specify dependencies
if [[ -e $FILES/apts/${service} ]]; then
file_to_parse="${file_to_parse} $service"
fi
if [[ $service == n-* ]]; then
if [[ ! $file_to_parse =~ nova ]]; then
file_to_parse="${file_to_parse} nova"
@ -398,8 +402,6 @@ function get_packages() {
if [[ ! $file_to_parse =~ keystone ]]; then
file_to_parse="${file_to_parse} keystone"
fi
elif [[ -e $FILES/apts/${service} ]]; then
file_to_parse="${file_to_parse} $service"
fi
done