Issue #3105353 by tedbow, dww, xjm, joachim: Remove the ability for module to define "major" in their info.yml files

merge-requests/184/head
catch 2020-12-23 10:46:13 +00:00
parent 21bd33d6ce
commit e66a3860b3
1 changed files with 2 additions and 3 deletions

View File

@ -41,10 +41,9 @@ function update_process_project_info(&$projects) {
if (preg_match('/^(\d+\.x-)?(\d+)\..*$/', $info['version'], $matches)) { if (preg_match('/^(\d+\.x-)?(\d+)\..*$/', $info['version'], $matches)) {
$info['major'] = $matches[2]; $info['major'] = $matches[2];
} }
elseif (!isset($info['major'])) { else {
// This would only happen for version strings that don't follow the // This would only happen for version strings that don't follow the
// drupal.org convention. We let contribs define "major" in their // drupal.org convention.
// .info.yml in this case, and only if that's missing would we hit this.
$info['major'] = -1; $info['major'] = -1;
} }
} }