Using Drush Make while ftp.drupal.org is down

The Drush Make utility downloads modules from ftp.drupal.org during the build – but the ftp.drupal.org site is currently down, which means Drush Make won’t work (and so our continuous integration has ground to a halt).

There’s a fix for general Drush usage here: http://contrib.linalis.com/content/continuer-dutiliser-drush-quand-ftpdrupalorg-est-down

That fix changes the download url to use drupal.org (which is working) instead of ftp.drupal.org (which isn’t).

Unfortunately Drush Make uses it’s own download functions, so this doesn’t help..¬†Here’s my (very similar) hack to get the Drush Make downloads working..

Change line 367 in drush_make.drush.inc to the following:

'url'  => str_replace('ftp.', '', $release['file']),

(The file should be somewhere like /usr/share/drush/commands/drush_make)

And don’t forget to remove the hack when ftp.drupal.org comes back..

4 Comments

  1. J0nathan

    Hi,
    That patch doesn’t work for me with drush make 2.3.
    Do you know the version used for?
    Maybe with a couple of lines before and after we can use it for drush make 2.3.

  2. jhigman

    I was using drush make 2.2 (and I put the wrong line number in the original post – I’ve updated it now).

    In version 2.3, it looks like the fix should be the same, but the line number in drush_make.drush.inc is now 410.

    So the lines at the end of the drush_make_update_xml_download function should be this:

    function drush_make_update_xml_download($project) {

    ....

    $release = $releases[$final_version];
    $project['download'] = array(
    'type' => 'get',
    'url' => str_replace('ftp.', '', $release['file']),
    'md5' => $release['md5'],
    );
    return $project;
    }

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>