# HG changeset patch # User Wise, Catherine (Digital, Acton) # Date 1435200560 -36000 # Node ID eefb47f4f4384a371cb9a40bfc17ecf1f702d64f # Parent bc3e29a9770933a3118656c6845acca969a1c3df Try again. diff -r bc3e29a97709 -r eefb47f4f438 TrustStoreGalaxyBrowse.py --- a/TrustStoreGalaxyBrowse.py Thu Jun 25 10:04:23 2015 +1000 +++ b/TrustStoreGalaxyBrowse.py Thu Jun 25 12:49:20 2015 +1000 @@ -190,16 +190,14 @@ name = construct_multi_filename(hda_id, filename, extension) target_output_filename = None data_type = "new_primary_dataset" - # if first: - # target_output_filename = file_name - # dataset = "new_primary_dataset" - # first = False - # else: target_output_filename = os.path.normpath(os.path.join(extra_files_path, name)) download = truststore.getFile(store, location) if download is None: print("File %s not found." % location.name) sys.exit(4) + if first: + first = False + target_output_filename = download ungzip(download, target_output_filename) # ext = sniff.handle_uploaded_dataset_file(target_output_filename, datatypes_registry, ext=ext) # print("Guessed file type: " + ext)