summaryrefslogtreecommitdiff
path: root/modules/update
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-10 09:49:49 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-10 09:49:49 +0000
commitc80481634f6a7e00b43eb63ed5b0c8a2feb959c8 (patch)
tree6e0ccd059e2520123bf9e8f45851f95b215f27d4 /modules/update
parent459d623467a23d8deda42620eb9be7992d5cfd24 (diff)
downloadbrdo-c80481634f6a7e00b43eb63ed5b0c8a2feb959c8.tar.gz
brdo-c80481634f6a7e00b43eb63ed5b0c8a2feb959c8.tar.bz2
- Patch #606190 by dww, noahb, sun: improve handling of database schema updates in update manager workflow.
Diffstat (limited to 'modules/update')
-rw-r--r--modules/update/update.authorize.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/update/update.authorize.inc b/modules/update/update.authorize.inc
index 0a5514d9d..7c675bf37 100644
--- a/modules/update/update.authorize.inc
+++ b/modules/update/update.authorize.inc
@@ -154,7 +154,9 @@ function update_authorize_batch_copy_project($project, $updater_name, $local_url
}
_update_batch_create_message($context['results']['log'][$project], t('Installed %project_name successfully', array('%project_name' => $project)));
- $context['results']['tasks'] += $tasks;
+ if (!empty($tasks)) {
+ $context['results']['tasks'] += $tasks;
+ }
// This particular operation is now complete, even though the batch might
// have other operations to perform.
@@ -206,6 +208,10 @@ function update_authorize_update_batch_finished($success, $results) {
'type' => 'error',
);
}
+ // Since we're doing an update of existing code, always add a task for
+ // running update.php.
+ $results['tasks'][] = t('Your modules have been downloaded and updated.');
+ $results['tasks'][] = t('<a href="@update">Run database updates</a>', array('@update' => base_path() . 'update.php'));
// Set all these values into the SESSION so authorize.php can display them.
$_SESSION['authorize_results']['success'] = $success;