Closed (fixed)
Project:
Drush
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 May 2010 at 06:56 UTC
Updated:
15 May 2010 at 19:30 UTC
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
Comment #1
moshe weitzman commentedThere 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.