diff --git a/core/lib/Drupal/Core/Extension/InfoParserDynamic.php b/core/lib/Drupal/Core/Extension/InfoParserDynamic.php index 64e4941..c1af58f 100644 --- a/core/lib/Drupal/Core/Extension/InfoParserDynamic.php +++ b/core/lib/Drupal/Core/Extension/InfoParserDynamic.php @@ -33,8 +33,13 @@ public function parse($filename) { if (!empty($missing_keys)) { throw new InfoParserException('Missing required keys (' . implode(', ', $missing_keys) . ') in ' . $filename); } - if (isset($parsed_info['version']) && $parsed_info['version'] === 'VERSION') { - $parsed_info['version'] = \Drupal::VERSION; + if (isset($parsed_info['version'])) { + if ($parsed_info['version'] === 'VERSION') { + $parsed_info['version'] = \Drupal::VERSION; + } + elseif (substr($parsed_info['version'], 0, 8) === 'VERSION-') { + $parsed_info['version'] = \Drupal::VERSION . substr($parsed_info['version'], 7); + } } } return $parsed_info; diff --git a/core/modules/inline_form_errors/inline_form_errors.info.yml b/core/modules/inline_form_errors/inline_form_errors.info.yml index 5b5321b..ecb0a29 100644 --- a/core/modules/inline_form_errors/inline_form_errors.info.yml +++ b/core/modules/inline_form_errors/inline_form_errors.info.yml @@ -1,6 +1,6 @@ type: module name: Inline Form Errors description: 'Enables inline form errors.' -version: 8.1.0-unstable +version: VERSION-unstable core: 8.x package: Core (Experimental) diff --git a/core/modules/migrate/migrate.info.yml b/core/modules/migrate/migrate.info.yml index 00aa8f0..e6bfff7 100644 --- a/core/modules/migrate/migrate.info.yml +++ b/core/modules/migrate/migrate.info.yml @@ -2,5 +2,5 @@ name: Migrate type: module description: 'Handles migrations' package: Core (Experimental) -version: 8.1.0-beta +version: VERSION-beta core: 8.x diff --git a/core/modules/migrate_drupal/migrate_drupal.info.yml b/core/modules/migrate_drupal/migrate_drupal.info.yml index a28d7d8..b4263f2 100644 --- a/core/modules/migrate_drupal/migrate_drupal.info.yml +++ b/core/modules/migrate_drupal/migrate_drupal.info.yml @@ -2,7 +2,7 @@ name: Migrate Drupal type: module description: 'Contains migrations from older Drupal versions.' package: Core (Experimental) -version: 8.1.0-alpha +version: VERSION-alpha core: 8.x dependencies: - migrate