mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
fix searchgui_archive set_meta
probably with py3 reading a file from a zip file is binary. hence startswith and split fail.
This commit is contained in:
@@ -2112,6 +2112,7 @@ class SearchGuiArchive(CompressedArchive):
|
||||
if 'searchgui.properties' in tempzip.namelist():
|
||||
with tempzip.open('searchgui.properties') as fh:
|
||||
for line in fh:
|
||||
line = line.decode()
|
||||
if line.startswith('searchgui.version'):
|
||||
version = line.split('=')[1].strip()
|
||||
dataset.metadata.searchgui_version = version
|
||||
|
||||
Reference in New Issue
Block a user