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.

Comments

greg.1.anderson’s picture

Category: bug » feature
Priority: Normal » Minor
Status: Active » Needs review
StatusFileSize
new1.98 KB

I 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.

greg.1.anderson’s picture

StatusFileSize
new696 bytes

Better patch. #0 includes changes for a different issue with pm-updatecode that I'm not finished testing yet.

moshe weitzman’s picture

Assigned: Unassigned » jonhattan

Is the updatecode change needed here? Maybe that snuck into the patch.

This makes sense to me. Would be good to get jonhattan's review.

jonhattan’s picture

StatusFileSize
new737 bytes

DRUSH_PM_CORE_UPDATE_AVAILABLE is 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.

jonhattan’s picture

Priority: Minor » Major
greg.1.anderson’s picture

Status: Needs review » Fixed

Committed. Also added the same check to pm-updatecode, to skip the notify if there is nothing to notify about.

Status: Fixed » Closed (fixed)

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