diff --git a/README.md b/README.md index 411ef4c..f484f1a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ +Changes in this branch: +- Support for Amiga protection bits +- Support for archive create system + +Upstream README: + + + # LHA archive support for Python The `lhafile` package is a python extension that handles .lha archives, with diff --git a/lhafile/lhafile.py b/lhafile/lhafile.py index 9e93db1..d813d38 100644 --- a/lhafile/lhafile.py +++ b/lhafile/lhafile.py @@ -215,11 +215,12 @@ def _RealGetContent(self): filename, crc = unpack('<%dsH' % filename_length, fp.read(filename_length + 2)) if os_level == 0: ext_header_size = 0 + os_identifier = None pass elif os_level == 1: extra_data_size = header_size - (5+4+4+2+2+1+1+1+filename_length+2+1+2) os_identifier, extra_data, ext_header_size \ - = unpack('