Closed (fixed)
Project:
Drush
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
6 Dec 2009 at 00:53 UTC
Updated:
29 Jan 2010 at 01:06 UTC
Jump to comment: Most recent file
Many sites follow the best practice of a contrib and cutom directory inside the /sites/all/modules/ directory. But currently drush can only download modules to the /sites/all/modules/ directory, it'd be useful if it checked for a contrib directory and if it existed it would download modules there.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | check-for-contrib.patch | 723 bytes | greg.1.anderson |
Comments
Comment #1
moshe weitzman commenteduse --destination for now
Comment #2
moshe weitzman commentedI'm inclined to add this. Its pretty easy, and promotes good hygiene
Comment #3
moshe weitzman commentedpatches welcome. i won't be working on this.
Comment #4
greg.1.anderson commentedYep, pretty easy; patch attached.
I was tempted to create a 'contrib' directory if the modules directory did not already exist (actively promote good hygiene), but drush uses the existence of the modules directory as an indicator of where downloads should go, so I decided to leave well enough alone and just do the straightforward thing and use 'contrib' iff it exists.
Does anyone do anything like this for themes? I only handled modules. It would be trivial to move the new four lines from this patch to the end of the 'switch' and make the 'contrib' check apply to all destination types.
Comment #5
moshe weitzman commentedCommitted with a code comment. Thanks.
Comment #7
nvanhove commented#4, this would be good to also have in the theme directory :)
Comment #8
nvanhove commentedComment #9
greg.1.anderson commentedComment #10
moshe weitzman commentedThats a bit much, no? I can't imagine why you would have more than a couple folders in sites/all/themes
Comment #11
nvanhove commentedMe neither, but at least it would be consistent.
Comment #12
moshe weitzman commentedreset status. not needed for themes.