The off-Drupal.org project-sphere is growing with things like Feature Servers. It would be nifty if you could do something like drush mysite.com --repo=my.repo dl my-awesome-module.

Based on the model of aliases:

$repositories['drupal.org'] = array(
  'source' => 'http://updates.drupal.org/release-history',
  'savedir' => 'contrib',
);

$repositories['devseed'] = array(
  'source' => 'http://code.developmentseed.org/fserver',
  'savedir' => 'features',
);

$repositories['do-views'] = array(
  'source' => 'http://updates.drupal.org/release-history',
  'savedir' => 'contrib/views',
);

The 'savedir' concept makes contrib in pm_dl_destination_lookup() an option. By allowing it to be specified in the repositories definition you can more easily maintain a structured modules directory. I suppose that should be a separate feature request, but without the repositories definition it's a bit unwieldy.

I've just started sorting through the codebase to do this the right way. Reality checks and guidance are welcome.

Comments

moshe weitzman’s picture

Status: Active » Fixed

There is already a --source option on dl for alternate repositories like feature servers. dl already uses /contrib subfolder if thats present ... You can use --destination to control it further.

Status: Fixed » Closed (fixed)

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