Closed (fixed)
Project:
Drush
Component:
PM (dl, en, up ...)
Priority:
Major
Category:
Feature request
Assigned:
Reporter:
Created:
26 Nov 2010 at 05:45 UTC
Updated:
16 Dec 2010 at 17:50 UTC
Jump to comment: Most recent file
I think in the past, updatedb would only run if updatecode did something. Now, it runs if there are no code updates available. It does not run if the user answers "no" to the confirmation prompt when there are updates available.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | drush-982098.patch | 737 bytes | jonhattan |
| #2 | drush-updatedb-only-after-updates-2.patch | 696 bytes | greg.1.anderson |
| #1 | drush-updatedb-only-after-updates.patch | 1.98 KB | greg.1.anderson |
Comments
Comment #1
greg.1.anderson commentedI looked at the code, and it seems my memory was wrong; updatedb was always called after updatecode, even if no code updates were made. This patch corrects that.
Comment #2
greg.1.anderson commentedBetter patch. #0 includes changes for a different issue with pm-updatecode that I'm not finished testing yet.
Comment #3
moshe weitzman commentedIs the updatecode change needed here? Maybe that snuck into the patch.
This makes sense to me. Would be good to get jonhattan's review.
Comment #4
jonhattanDRUSH_PM_CORE_UPDATE_AVAILABLEis not the best context to check here. It is only set if there're updates for both core and contrib.DRUSH_PM_UPDATED is set when any project is efectively updated.
Comment #5
jonhattanComment #6
greg.1.anderson commentedCommitted. Also added the same check to pm-updatecode, to skip the notify if there is nothing to notify about.