Changeset 11528 for trunk


Ignore:
Timestamp:
2006-03-29T11:33:46+12:00 (18 years ago)
Author:
mdewsnip
Message:

Now barfs if there are duplicate chunk keys in Greenstone XML files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/gti.pl

    r11526 r11528  
    12261226
    12271227        # Map from chunk key to line
    1228         $chunk_key_to_line_mapping{$chunk_key} = $startline . "-" . $i;
     1228        if (!defined($chunk_key_to_line_mapping{$chunk_key})) {
     1229        $chunk_key_to_line_mapping{$chunk_key} = $startline . "-" . $i;
     1230        }
     1231        else {
     1232        &throw_fatal_error("Duplicate key $chunk_key.");
     1233        }
    12291234    }
    12301235    }
Note: See TracChangeset for help on using the changeset viewer.