I have installed drush, created an alias to it and installed and enabled drush_extras
When I do the command line: drush pm update
It lists all my modules correctly and goes on to ask me Do you really want to continue?
However, it says drush: Aborting before I can say Y/N
Do you really want to continue? (y/n): drush: Aborting.
Comments
Comment #1
jerome72 commentedsame problem here.
Comment #2
clemens.tolboomI just updated the drush-HEAD of March 31 and this fixed this problem.
Trouble is we now lost the update alerts which is imho _very_ bad. The new mantra for drush is 'follow the head' :(
Comment #3
clemens.tolboomWell ... the abort is solved but now I get the following for
on a SVN environment where there should not be any backup :(
I really would love to get a proper release back. In this case drush-6.x-2.2 :)
Comment #4
clemens.tolboomAdding a define for DRUSH_DRUPAL_ROOT same as and next to DRUPAL_ROOT
fixed the download failure.
I'm not sure why DRUPAL_ROOT is used so no patch.
Comment #5
adrian commentedThere's no define use anymore for stuff like this.
The command needs to be updated
Comment #6
Fintan Darragh commentedHey guys,
I'm using the very latest version of HEAD (15 Apr 09) and I continue to get this error when I run
drush update:Do you really want to continue? (y/n): drush: Aborting....in the middle of what looks like a promising run at an update.
-F
Comment #7
bradleygsmith commentedFintan,
I needed this to work as well and was having the same trouble. I sorted through some code and believe I have a temporary fix. Note: the temporary fix output mkdir warnings for me the first time I ran it because I already had certain directories the update was trying to create, but when I ran it a second time to verify updates occurred, I received no mkdir warnings (or any warnings for that matter) and all modules had been updated.
Line 339 in /path/to/drush/includes/environment.inc
Change this line:
drush_set_context('DRUSH_AFFIRMATIVE', drush_get_option(array('y', 'yes'), FALSE));
to this line:
drush_set_context('DRUSH_AFFIRMATIVE', drush_get_option(array('y', 'yes'), TRUE));
then run:
drush -y update
About the change: this forces drush to agree to make the changes without confirming. The '-y' in 'drush -y update' is probably just overkill. -y should normally force any confirmations to yes (in regards to drush).
I don't have any experience creating patches yet or I would create one. As I said, this is a temporary fix, when you are finished running your update make sure to revert back to the old code:
drush_set_context('DRUSH_AFFIRMATIVE', drush_get_option(array('y', 'yes'), FALSE));
Hope this helps.
Comment #8
owen barton commentedThis is caused by pm_update using drush_backend_invoke rather than drush_invoke for the updatecode operation. I have a patch to fix this, and will commit shortly (with some other fixes).
Comment #9
owen barton commentedCommitted this fix - please update and retest
Comment #10
Fintan Darragh commentedHey dudes,
Yep - that's fixed it. Works an absolute treat now. Awesome work!!!
-F