If a dependency requires you to select which release you want to install you get stuck in a loop where you must cancel the dependency download and must cancel enabling the module.

Example:

drush dl media_browser_plus
drush en media_browser_plus
The following projects have unmet dependencies:
media_browser_plus requires multiform
Would you like to download them? (y/n): y
There is no recommended release for project multiform.
Choose one of the available releases:
 [0]  :  Cancel                                        
 [1]  :  7.x-1.x-dev    -  2011-Jun-09  -  Development 
 [2]  :  7.x-1.0-beta2  -  2011-Mar-25  -  Supported  
CommentFileSizeAuthor
#4 drush-1218268.patch1.19 KBjonhattan

Comments

mrf’s picture

Title: Unable to downlaod dependencies with options » Unable to download dependencies without recommended release
moshe weitzman’s picture

Assigned: Unassigned » greg.1.anderson

This might a dupe. Have some recollection about reading this before.

carn1x’s picture

Version: 7.x-4.4 » 7.x-4.5

Subscribe

jonhattan’s picture

Version: 7.x-4.5 »
Status: Active » Needs review
StatusFileSize
new1.19 KB

A way to fix this is to pass interactive flag to drush_invoke_process. Aditionally we need to disable DRUSH_AFFIRMATIVE context to avoid a infinite loop.

Other way is to implement pm-download --latest to avoid fallback to --select

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

Seems reasonable to me.

jonhattan’s picture

Status: Reviewed & tested by the community » Fixed

committed.

jonhattan’s picture

Version: » All-versions-4.x-dev
Assigned: greg.1.anderson » msonnabaum
Status: Fixed » Patch (to be ported)
msonnabaum’s picture

Status: Patch (to be ported) » Fixed

Backported.

Status: Fixed » Closed (fixed)

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