function drush_pm_post_pm_updatecode

8.0.x pm.drush.inc drush_pm_post_pm_updatecode()
6.x pm.drush.inc drush_pm_post_pm_updatecode()
7.x pm.drush.inc drush_pm_post_pm_updatecode()
3.x pm.drush.inc drush_pm_post_pm_updatecode()
4.x pm.drush.inc drush_pm_post_pm_updatecode()
5.x pm.drush.inc drush_pm_post_pm_updatecode()
master pm.drush.inc drush_pm_post_pm_updatecode()

Post-command callback for updatecode.

Execute pm-updatecode-postupdate in a backend process to not conflict with old code already in memory.

File

commands/pm/pm.drush.inc, line 1611
The drush Project Manager

Code

function drush_pm_post_pm_updatecode() {
  // Skip if updatecode was invoked by pm-update.
  // This way we avoid being noisy, as updatedb is to be executed.
  $command = drush_get_command();
  if ($command['command'] != 'pm-update') {
    if (drush_get_context('DRUSH_PM_UPDATED', FALSE) !== FALSE) {
      drush_backend_invoke('pm-updatecode-postupdate');
    }
  }
}