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

Change-Id: Ib9de4571501771f12b1aeb6550e94eea03643290
diff --git a/stack.sh b/stack.sh
index f4ed7db..15ab538 100755
--- a/stack.sh
+++ b/stack.sh
@@ -386,6 +386,10 @@
     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 @@
             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