mirror of https://github.com/ecmwf/eccodes.git
ECC-926: bufr_compare should fail if passed index files
This commit is contained in:
parent
b1eceb606d
commit
7bd147bfa6
|
@ -167,7 +167,9 @@ int grib_tool(int argc, char **argv)
|
|||
dump_file=stdout;
|
||||
}
|
||||
|
||||
if (is_index_file(global_options.infile->name) &&
|
||||
/* ECC-926: Currently only GRIB indexing works. Disable the through_index if BUFR, GTS etc */
|
||||
if (global_options.mode == MODE_GRIB &&
|
||||
is_index_file(global_options.infile->name) &&
|
||||
( global_options.infile_extra && is_index_file(global_options.infile_extra->name))) {
|
||||
global_options.through_index=1;
|
||||
return grib_tool_index(&global_options);
|
||||
|
|
Loading…
Reference in New Issue