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:
M Bernt
2020-02-25 16:05:10 +01:00
parent 64aa89200a
commit 229e04a5fd
+1
View File
@@ -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