Using Drush Make while is down

The Drush Make utility downloads modules from during the build – but the 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:

That fix changes the download url to use (which is working) instead of (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 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 comes back..

4 thoughts on “Using Drush Make while is down”

  1. 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. 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 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.