1 |
commit: f391b2cc5384fc38e99a0598cb3de2346e297c25 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 4 20:18:47 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 4 20:25:23 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=f391b2cc |
7 |
|
8 |
compression_probe: decompress zstd --long=31 (bug 634980) |
9 |
|
10 |
In order to decompress files compressed with zstd --long=31, add |
11 |
--long=31 to the zstd decompress options. Even though zstd compression |
12 |
does not support --long=31 on 32-bit platforms, decompression with |
13 |
--long=31 still works as long as the file was compressed with a |
14 |
smaller windowLog. |
15 |
|
16 |
Reported-by: Martin Väth <martin <AT> mvath.de> |
17 |
Bug: https://bugs.gentoo.org/634980 |
18 |
|
19 |
lib/portage/util/compression_probe.py | 2 +- |
20 |
1 file changed, 1 insertion(+), 1 deletion(-) |
21 |
|
22 |
diff --git a/lib/portage/util/compression_probe.py b/lib/portage/util/compression_probe.py |
23 |
index 29d0eedff..90880b1cd 100644 |
24 |
--- a/lib/portage/util/compression_probe.py |
25 |
+++ b/lib/portage/util/compression_probe.py |
26 |
@@ -45,7 +45,7 @@ _compressors = { |
27 |
}, |
28 |
"zstd": { |
29 |
"compress": "zstd ${BINPKG_COMPRESS_FLAGS}", |
30 |
- "decompress": "zstd -d", |
31 |
+ "decompress": "zstd -d --long=31", |
32 |
"package": "app-arch/zstd", |
33 |
}, |
34 |
} |