mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Consistent sniffing regardless of in_place.
Previously sniffing would happen on the original file (before carriage returns and tabular spaces were converted) if in_place was false and on the converted file if it was true.
This commit is contained in:
@@ -277,7 +277,7 @@ def add_file(dataset, registry, json_file, output_path):
|
||||
else:
|
||||
line_count, converted_path = sniff.convert_newlines(dataset.path, in_place=in_place, tmp_dir=tmpdir, tmp_prefix=tmp_prefix)
|
||||
if dataset.file_type == 'auto':
|
||||
ext = sniff.guess_ext(dataset.path, registry.sniff_order)
|
||||
ext = sniff.guess_ext(converted_path or dataset.path, registry.sniff_order)
|
||||
else:
|
||||
ext = dataset.file_type
|
||||
data_type = ext
|
||||
|
||||
Reference in New Issue
Block a user