? drush.indy.patch Index: drush.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/drush/drush.inc,v retrieving revision 1.16 diff -u -p -r1.16 drush.inc --- drush.inc 19 May 2008 01:31:57 -0000 1.16 +++ drush.inc 18 Nov 2008 20:06:36 -0000 @@ -6,6 +6,9 @@ * The drush API implementation and helpers. */ +// Load the drush module engine. +require_once(dirname(__FILE__) . '/module.inc'); + /** * Dispatch a given set of commands. * Modules can add commands by implementing hook_drush_command(). @@ -50,7 +53,7 @@ function drush_get_commands($refresh = F return $commands; } - $commands = module_invoke_all('drush_command', TRUE); + $commands = drush_module_invoke_all('drush_command', TRUE); return $commands; } Index: drush.php =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/drush/drush.php,v retrieving revision 1.24.2.3 diff -u -p -r1.24.2.3 drush.php --- drush.php 18 Nov 2008 01:07:49 -0000 1.24.2.3 +++ drush.php 18 Nov 2008 20:06:36 -0000 @@ -243,16 +243,7 @@ function _drush_bootstrap_drupal() { // The bootstrap can fail silently, so we catch that in a shutdown function. register_shutdown_function('drush_shutdown'); drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); - if (module_exists('drush')) { - require_once drupal_get_path('module', 'drush') . '/drush.inc'; - } - else { - $message = "E: You must enable the Drush module for the site you want to use.\n"; - $message .= "Hint: Drush was looking in the site '$conf_path'. You can select another site\n"; - $message .= "with Drush enabled by specifying the Drupal URI to use with the --uri\n"; - $message .= "parameter on the command line or \$options['uri'] in your drushrc.php file.\n"; - die($message); - } + require_once dirname(__FILE__) . '/drush.inc'; } function drush_shutdown() { Index: module.inc =================================================================== RCS file: module.inc diff -N module.inc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ module.inc 18 Nov 2008 20:06:36 -0000 @@ -0,0 +1,104 @@ +