diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc36ef7..95886f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: [3.5, 3.6, 3.7, 3.8] + python: [3.6, 3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2 diff --git a/uhu/core/compression.py b/uhu/core/compression.py index 54ab0e8..76c0256 100644 --- a/uhu/core/compression.py +++ b/uhu/core/compression.py @@ -28,6 +28,14 @@ 'test': 'xz -t %s', 'cmd': "xz -l %s --robot | tail -n 1 | awk '{ print $5}'" }, + # LZMA format: http://tukaani.org/xz/xz-file-format.txt + 'lzma': { + 'signature': b'\x5d\x00\x00', + 'test': 'xz -t --format=lzma %s', + # Since lzma compression doen't add uncompressed size + # information to the header to set the field to 0 + 'cmd': "ls %s | echo 0" + }, }