From ef4e5367d20cfeadb77e706bf81cd8401e36feb4 Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Thu, 1 Dec 2011 13:44:51 -0800 Subject: [PATCH] Allow individual services to specify dependencies. Also fixes lp897879: https://bugs.launchpad.net/bugs/897879 Change-Id: Ib9de4571501771f12b1aeb6550e94eea03643290 --- stack.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stack.sh b/stack.sh index f4ed7db..15ab538 100755 --- a/stack.sh +++ b/stack.sh @@ -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