ECC-926: bufr_compare should fail if passed index files

This commit is contained in:
Shahram Najm 2019-05-14 17:53:27 +01:00
parent b1eceb606d
commit 7bd147bfa6
1 changed files with 3 additions and 1 deletions

View File

@ -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);