Commit e2d64c29 authored by helmo's avatar helmo

Resolve the VERSION constant used in Git checkouts

parent 2da84d4c
......@@ -22,6 +22,16 @@ function _provision_drupal_find_themes($scope, $key = '') {
if (!empty($files[$name]->info['name'])) {
$files[$name]->name = $files[$name]->info['name'];
}
if (!empty($files[$name]->info['version'])) {
$files[$name]->version = $files[$name]->info['version'];
}
// Resolve the 'VERSION' constant used in Git checkouts.
if ($files[$name]->version == 'VERSION') {
$files[$name]->version = drush_drupal_version();
}
// @TODO: This is copied from the D7 implementation and I'm almost certain
// that is doesn't even do anything in D7.
if (empty($files[$name]->info['engine'])) {
......
......@@ -699,6 +699,12 @@ function _provision_drupal_find_modules($scope, $key = '') {
}
$files[$name]->schema_version = $schema_version;
$files[$name]->version = $files[$name]->info['version'];
// Resolve the 'VERSION' constant used in Git checkouts.
if ($files[$name]->version == 'VERSION') {
$files[$name]->version = drush_drupal_version();
}
}
return $files;
}
......
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