Commit 049e9958 authored by Steven Jones's avatar Steven Jones

Issue #1111572 by helmo, Steven Jones: Fixed Undefined index: profiles deploy.provision.inc:84.

parent 4286bbec
......@@ -82,11 +82,17 @@ function drush_provision_drupal_pre_provision_deploy($backup_file) {
_provision_drupal_create_settings_file();
$site_packages = drush_get_option('packages', array(), 'site');
$drupal_packages = drush_get_option('packages', array(), 'drupal');
$merged_modules = $drupal_packages['base']['modules'];
if (isset($site_packages['profiles'])) {
$profiles = array_keys($site_packages['profiles']);
$profile = $profiles[0];
if (isset($drupal_packages['profiles'][$profile]['modules'])) {
$merged_modules = array_merge($merged_modules, $drupal_packages['profiles'][$profile]['modules']);
}
}
$drupal_packages = drush_get_option('packages', array(), 'drupal');
$merged_modules = array_merge($drupal_packages['base']['modules'], $drupal_packages['profiles'][$profile]['modules']);
if (isset($site_packages['modules']) && is_array($site_packages['modules'])) {
foreach ($site_packages['modules'] as $name => $module) {
if ($module['status'] == 1) {
if (!array_key_exists($name, $merged_modules)) {
......@@ -106,6 +112,7 @@ function drush_provision_drupal_pre_provision_deploy($backup_file) {
}
}
}
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment