? drush-1003360.patch
? drush-1003480.patch
? drush-1004476.patch
? parche.txt
? includes/table.inc
Index: commands/core/site_install.drush.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/commands/core/site_install.drush.inc,v
retrieving revision 1.15
diff -u -r1.15 site_install.drush.inc
--- commands/core/site_install.drush.inc	20 Dec 2010 05:58:24 -0000	1.15
+++ commands/core/site_install.drush.inc	21 Dec 2010 20:47:27 -0000
@@ -3,18 +3,15 @@
 
 // Perform setup tasks for installation.
 function drush_core_pre_site_install() {
-
   if (!$db_spec = drush_core_site_install_db_spec()) {
     drush_set_error(dt('Could not determine database connection parameters. Pass --db-url option.'));
     return;
   }
-
-  
   if ($sites_subdir = drush_get_option('sites-subdir')) {
     // Needed so that we later bootstrap into the right site.
     drush_set_option('uri', $sites_subdir);
   }
- else {
+  else {
     $sites_subdir = 'default';
   }
 
Index: commands/core/drupal/site_install_6.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/commands/core/drupal/site_install_6.inc,v
retrieving revision 1.2
diff -u -r1.2 site_install_6.inc
--- commands/core/drupal/site_install_6.inc	8 Dec 2010 05:26:57 -0000	1.2
+++ commands/core/drupal/site_install_6.inc	21 Dec 2010 20:47:27 -0000
@@ -4,7 +4,7 @@
 /**
  * Install Drupal 6.x
  */
-function drush_core_site_install_version($profile) {  
+function drush_core_site_install_version($profile) {
   if (is_null($profile)) {
     $profile = 'default';
   }
@@ -18,7 +18,6 @@
   drush_shell_exec('php -r %s', $phpcode);
   $cli_output = drush_shell_exec_output();
   $cli_cookie = end($cli_output);
-  
   $phpcode = _drush_site_install6_cookies($profile, $cli_cookie). ' $_GET["op"]="start"; include("'. $drupal_root .'/install.php");';
   drush_shell_exec('php -r %s', $phpcode);
 
@@ -58,7 +57,9 @@
 function _drush_site_install6_cookies($profile, $cookie = NULL) {
   $output = '$_GET=array("profile"=>"' . $profile . '", "locale"=>"' . drush_get_option('locale', 'en') . '", "id"=>"1"); $_REQUEST=&$_GET;';
   $output .= 'define("DRUSH_SITE_INSTALL6", TRUE);$_SERVER["SERVER_SOFTWARE"] = NULL;';
-  
+  $output .= '$_SERVER["SCRIPT_NAME"] = "/install.php";';
+  $output .= '$_SERVER["HTTP_HOST"] = "'.drush_get_option('uri', 'default').'";';
+
   if ($cookie) {
     $output .= sprintf('$_COOKIE=unserialize("%s");', str_replace('"', '\"', $cookie));
   }
@@ -66,6 +67,6 @@
     $output .= 'function _cli_cookie_print(){print(serialize(array(session_name()=>session_id())));}
 register_shutdown_function("_cli_cookie_print");';
   }
-  
+
   return $output;
 }
