Index: nutch.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nutch/nutch.admin.inc,v
retrieving revision 1.4
diff -r1.4 nutch.admin.inc
19,21c19,20
<   if (!file_check_directory(variable_get('nutch_nutch_dir', '/usr/local/nutch'))) {
<     drupal_set_message(t('The Directory %directory either does not exist or is not writable by the webserver.', array('%directory' => variable_get('nutch_nutch_dir', '/usr/local/nutch'))), 'error');
<   }
---
>   nutch_check_directory('logs');
>   
95,97c94,95
<   if (!file_check_directory(variable_get('nutch_nutch_dir', '/usr/local/nutch'))) {
<     drupal_set_message(t('The Directory %directory either does not exist or is not writable by the webserver.', array('%directory' => variable_get('nutch_nutch_dir', '/usr/local/nutch'))), 'error');
<   }  
---
>   nutch_check_directory('logs', TRUE);
>   
270c268,271
<   $log_file = variable_get('nutch_nutch_dir', '/usr/local/nutch') .'/logs/hadoop.log';
---
>   $log_directory = variable_get('nutch_nutch_dir', '/usr/local/nutch') . '/logs';
>   $log_file = $log_directory . '/hadoop.log';
>   nutch_check_directory('logs', TRUE);
>   
288a290,310
> /**
>  * 
>  * Check whether the directory as the correct permissions
>  * @param unknown_type $directory
>  * @param unknown_type $show_form_errors
>  */
> function nutch_check_directory($directory, $show_form_errors = FALSE) {
>   $directory = variable_get('nutch_nutch_dir', '/usr/local/nutch') . "/$directory";
>   $success = FALSE;
>   if ($show_form_errors) {
>     $success = file_check_directory($directory, TRUE, 'nutch_check_directory');
>   }
>   else {
>     $success = file_check_directory($directory, TRUE);
>   }
>   if (!$success) {
>     $help = t("Make sure that %directory is executable and writable by the webserver user (usually <em>www-data</em> or <em>nobody</em>). The parent directories may need these permissions too.", array('%directory' => $directory));
>     drupal_set_message($help, 'warning');
>   }  
> }
> 
Index: nutch.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nutch/nutch.module,v
retrieving revision 1.5
diff -r1.5 nutch.module
91,96c91,96
<   'info' => array(
<   'path' => drupal_get_path('module', 'nutch') . '/handlers',
<         ), 
<   'handlers' => array(
<   'nutch_views_handler_argument_digest' => array(
<           'parent' => 'apachesolr_views_handler_argument',
---
>     'info' => array(
>                 'path' => drupal_get_path('module', 'nutch') . '/handlers',
>               ), 
>     'handlers' => array(
>       'nutch_views_handler_argument_digest' => array(
>         'parent' => 'apachesolr_views_handler_argument',
142,144c142,149
<   function nutch_preprocess_search_result(&$variables) {
<    $variables['info'] .= ' - <a href="' . $variables['result']['node']->url . '" >' . $variables['result']['node']->url . '</a>' ;
<   }
---
> /**
>  * 
>  * Implementation of apachesolr's hook_preprocess_search_result
>  * @param unknown_type $variables
>  */
> function nutch_preprocess_search_result(&$variables) {
>   $variables['info'] .= ' - <a href="' . $variables['result']['node']->url . '" >' . $variables['result']['node']->url . '</a>' ;
> }
