Changeset 1799


Ignore:
Timestamp:
2000-12-18T09:20:23+13:00 (23 years ago)
Author:
sjboddie
Message:

fixed a little bug in the building code that caused an endless loop if the
same index was specified more than once in a collect.cfg file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/mgbuilder.pm

    r1679 r1799  
    108108    }
    109109
     110    # make sure that the same index isn't specified more than once
     111    my %tmphash = ();
     112    my @tmparray = @{$self->{'collect_cfg'}->{'indexes'}};
     113    $self->{'collect_cfg'}->{'indexes'} = [];
     114    foreach my $i (@tmparray) {
     115    if (!defined ($tmphash{$i})) {
     116        push (@{$self->{'collect_cfg'}->{'indexes'}}, $i);
     117        $tmphash{$i} = 1;
     118    }
     119    }
     120
    110121    # get the list of plugins for this collection
    111122    my $plugins = [];
Note: See TracChangeset for help on using the changeset viewer.