Issue #1322532 by axel.rutz: Fixed drush pm-enable dependency resolution bug.
authorMoshe Weitzman
Sat, 5 Nov 2011 01:04:30 +0000 (21:04 -0400)
committerMoshe Weitzman
Sat, 5 Nov 2011 01:04:54 +0000 (21:04 -0400)
commands/core/drupal/environment.inc

index 33dd2ff..3c150df 100644 (file)
@@ -55,6 +55,7 @@ function drush_check_module_dependencies($modules, $module_info) {
       // check for version incompatibility
       foreach ($dependencies as $dependency_name => $v) {
         $current_version = $module_info[$dependency_name]->info['version'];
+        $current_version = str_replace(DRUPAL_CORE_COMPATIBILITY . '-', '', $current_version);
         $incompatibility = drupal_check_incompatibility($v, $current_version);
         if (!is_null($incompatibility)) {
           $status[$key]['error'] = array(