Commit 9b820e7d authored by Adrian Rossouw's avatar Adrian Rossouw

No longer check that the makefile is a file. so it can be a URL. #373062

parent 4234aa92
......@@ -44,15 +44,12 @@ function drush_provision_drupal_pre_provision_verify() {
elseif (d()->type === 'platform') {
// create a platform from a makefile, if it doesnt already exist and the makefile does.
if (!provision_file()->exists(d()->root)->status() && !empty(d()->makefile)) {
if (provision_file()->exists(d()->makefile)->status()) {
drush_log(dt("Platform path does not exists, fetching from drush makefile"));
drush_backend_invoke("make", array(d()->makefile, d()->root), array('root' => null, 'uri' => null));
if (drush_get_error()) {
return drush_set_error("DRUSH_MAKE_FAILED",
"Could not download platform using drush make. No platform present");
}
drush_log(dt("Platform path does not exists, fetching from drush makefile"));
drush_backend_invoke("make", array(d()->makefile, d()->root), array('root' => null, 'uri' => null));
if (drush_get_error()) {
return drush_set_error("DRUSH_MAKE_FAILED",
"Could not download platform using drush make. No platform present");
}
}
drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_ROOT);
......
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