File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ classifiers = [
1717 " License :: OSI Approved :: GNU General Public License v2 (GPLv2)" ,
1818 " Operating System :: OS Independent" ,
1919]
20- dependencies = [" zenlib >= 3.0.2" ]
20+ dependencies = [" zenlib >= 3.0.2" , " zstd >= 1.5.6.1 " ]
2121
2222[project .scripts ]
2323pycpio = " pycpio.main:main"
Original file line number Diff line number Diff line change @@ -55,6 +55,11 @@ def compress(self, data):
5555
5656 self .logger .info ("XZ compressing the CPIO data, original size: %.2f MiB" % (len (data ) / (2 ** 20 )))
5757 data = lzma .compress (data , check = self .xz_crc )
58+ elif self .compression == "zstd" :
59+ import zstd
60+
61+ self .logger .info ("ZSTD compressing the CPIO data, original size: %.2f MiB" % (len (data ) / (2 ** 20 )))
62+ data = zstd .compress (data , 10 )
5863 elif self .compression is not False :
5964 raise NotImplementedError ("Compression type not supported: %s" % self .compression )
6065 return data
You can’t perform that action at this time.
0 commit comments