diff --git a/lib/Drush/UpdateService/Project.php b/lib/Drush/UpdateService/Project.php index d933922..187fe2f 100644 --- a/lib/Drush/UpdateService/Project.php +++ b/lib/Drush/UpdateService/Project.php @@ -120,6 +120,14 @@ class Project { } } + // This is a hack to simulate XML that could be returned from drupal.org to + // mark Drupal 6 core as unsupported. + if ($project_info['short_name'] == 'drupal') { + $project_info['supported_majors'] = '7,8'; + $project_info['recommended_major'] = '7'; + $project_info['default_major'] = '7'; + } + // Parse project type. $project_types = array( 'core' => 'project_core',