Commit 09d5bfd4 authored by Jim Fulton's avatar Jim Fulton

Fixed a bug that caused product install from TTW product distributions

to fail.
parent eb5c2b54
...@@ -210,12 +210,12 @@ class ExportImport: ...@@ -210,12 +210,12 @@ class ExportImport:
except: file_name='(unknown)' except: file_name='(unknown)'
read=file.read read=file.read
if read(4) == '<?xm': magic=read(4)
if magic == '<?xm':
file.seek(0) file.seek(0)
return self.importXML(file, clue) return self.importXML(file, clue)
else:
file.seek(0) if magic != 'ZEXP':
if file.read(4) != 'ZEXP':
raise POSException.ExportError, 'Invalid export header' raise POSException.ExportError, 'Invalid export header'
t=get_transaction().sub() t=get_transaction().sub()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment