Ignore:
Timestamp:
2011-01-14T09:53:23+13:00 (13 years ago)
Author:
sjm84
Message:

Merging the latest trunk changes into this branch

Location:
main/branches/64_bit_Greenstone/greenstone2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/branches/64_bit_Greenstone/greenstone2

  • main/branches/64_bit_Greenstone/greenstone2/perllib/plugins/DirectoryPlugin.pm

    r23419 r23580  
    235235        foreach my $e (keys %$exts) {
    236236        # block the file
    237         $self->block_filename($block_hash,"$prefix$e");
     237        &util::block_filename($block_hash,"$prefix$e");
    238238        # set up as an associatd file
    239239        print STDERR "  $self->{'plugin_type'}: Associating $prefix$e with $tie_to version\n";
     
    260260###    print STDERR "*** DirectoryPlugin::file_is_blocked $filename_full_path\n";
    261261
    262     if (defined $block_hash->{'file_blocks'}->{$filename_full_path}) {
    263     $self->{'num_blocked'} ++;
    264     return 1;
     262    if ($ENV{'GSDLOS'} =~ m/^windows$/) {
     263    # on windows, all block paths are lowercased.
     264    my $lower_filename = lc ($filename_full_path);
     265    if (defined $block_hash->{'file_blocks'}->{$lower_filename}) {
     266        $self->{'num_blocked'} ++;
     267        return 1;
     268    }
     269    }
     270    else {
     271    if (defined $block_hash->{'file_blocks'}->{$filename_full_path}) {
     272        $self->{'num_blocked'} ++;
     273        return 1;
     274    }
    265275    }
    266276    # check Directory plugin's own block_exp
Note: See TracChangeset for help on using the changeset viewer.