Commit fa1f00eb authored by ergonlogic's avatar ergonlogic Committed by helmo

Issue #2396299 by ergonlogic: Stop comparing platform package versions when...

Issue #2396299 by ergonlogic: Stop comparing platform package versions when said package is installed in the site
parent 864ff50e
...@@ -107,7 +107,10 @@ function drush_provision_drupal_pre_provision_deploy($backup_file) { ...@@ -107,7 +107,10 @@ function drush_provision_drupal_pre_provision_deploy($backup_file) {
if (isset($site_packages['modules']) && is_array($site_packages['modules'])) { if (isset($site_packages['modules']) && is_array($site_packages['modules'])) {
foreach ($site_packages['modules'] as $name => $module) { foreach ($site_packages['modules'] as $name => $module) {
if ($module['status'] == 1) { if ($module['status'] == 1) {
if (!array_key_exists($name, $merged_modules)) { if (isset($module['platform']) && $module['platform'] != '-1') {
drush_log(dt("The !name module is installed in the site's modules directory. Skipping schema version check.", array('!name' => $name)));
}
elseif (!array_key_exists($name, $merged_modules)) {
drush_log(dt("Could not find a version of the !name module", array('!name' => $name)), 'warning'); drush_log(dt("Could not find a version of the !name module", array('!name' => $name)), 'warning');
} }
else { else {
......
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