Index: install.php
===================================================================
RCS file: /cvs/drupal/drupal/install.php,v
retrieving revision 1.201
diff -u -p -r1.201 install.php
--- install.php	24 Aug 2009 14:49:08 -0000	1.201
+++ install.php	25 Aug 2009 20:24:13 -0000
@@ -587,6 +587,18 @@ function install_tasks($install_state) {
     ),
   );
 
+  // Allow the installation profile to modify the full list of tasks.
+  if (!empty($install_state['parameters']['profile'])) {
+    $profile_file = DRUPAL_ROOT . '/profiles/' . $install_state['parameters']['profile'] . '/' . $install_state['parameters']['profile'] . '.profile';
+    if (is_file($profile_file)) {
+      include_once $profile_file;
+      $function = $install_state['parameters']['profile'] . '_install_tasks_alter';
+      if (function_exists($function)) {
+        $function($tasks, $install_state);
+      }
+    }
+  }
+
   // Fill in default parameters for each task before returning the list.
   foreach ($tasks as $task_name => &$task) {
     $task += array(
