Trying to import the default site for #453492: cannot provision migrate default site doesn't write the drushrc.php as it should. Vertice hinted at a patch by pasting this on IRC:

16:08:55 <@Vertice> function provision_drupal_provision_import($url = NULL) {
16:09:01 <@Vertice>   drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_FULL);
16:09:05 <@Vertice>   drush_include_engine('drupal', 'import', drush_drupal_major_version());
16:09:08 <@Vertice>   drush_set_option('installed', TRUE, 'site');
16:09:08 <@Vertice> }

Comments

anarcat’s picture

The patch was committed, but I'm still getting nothing:

hostmaster@hostmaster:~/drupal-5.x$ /var/hostmaster/drush/drush.php --root=/var/hostmaster/drupal-5.x --verbose=2 provision import default ; echo $?
Drush bootstrap phase : _drush_bootstrap_drupal_root()                                                                          [bootstrap]
Loading drushrc "/var/hostmaster/drupal-5.x/drushrc.php" into "drupal" scope.                                                   [bootstrap]
Initialized Drupal 5.14 root directory at /var/hostmaster/drupal-5.x                                                            [notice]
Found command: provision import                                                                                                 [bootstrap]
Initializing drush commandfile: provision_mysql                                                                                 [bootstrap]
Initializing drush commandfile: provision_apache                                                                                [bootstrap]
Initializing drush commandfile: provision_drupal                                                                                [bootstrap]
Including /var/hostmaster/.drush/provision/platform/import.provision.inc                                                        [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_site()                                                                          [bootstrap]
Initialized Drupal site default at sites/default                                                                                [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration()                                                                 [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database()                                                                      [bootstrap]
Successfully connected to the Drupal database.                                                                                  [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full()                                                                          [bootstrap]
Including version specific file : /var/hostmaster/.drush/provision/platform/drupal/import_5.inc                                 [notice]
1

No file is created in sites/default/

anarcat’s picture

Status: Needs work » Fixed

Fixed. The suggested patch was commited and works.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.