/[Search-Estraier]/trunk/scripts/est-spider
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/scripts/est-spider

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 119 by dpavlin, Mon Apr 17 10:31:11 2006 UTC revision 121 by dpavlin, Mon Apr 17 10:38:17 2006 UTC
# Line 136  sub dump_contents { Line 136  sub dump_contents {
136          # boost title          # boost title
137          $doc->add_hidden_text($title);          $doc->add_hidden_text($title);
138    
139          print $doc->dump_draft if ($verbose);          print $doc->dump_draft if ($debug);
140    
141          # register the document object to the database          # register the document object to the database
142          $db->put_doc($doc);          $db->put_doc($doc);
# Line 195  sub file { Line 195  sub file {
195          my $contents;          my $contents;
196    
197          return if (! $force && -l $path || $path =~ m#/.svn# || $path =~ m/(~|.bak|.gif)$/);          return if (! $force && -l $path || $path =~ m#/.svn# || $path =~ m/(~|.bak|.gif)$/);
198            return if (! $all && -d $path);
199    
200          my $mtime = (stat($path))[9] || -1;          my $mtime = (stat($path))[9] || -1;
201          my $mtime_db = eval { $db->get_doc_attr_by_uri("file:///$path", '@mtime') };          my $mtime_db = eval { $db->get_doc_attr_by_uri("file:///$path", '@mtime') };

Legend:
Removed from v.119  
changed lines
  Added in v.121

  ViewVC Help
Powered by ViewVC 1.1.26