sys-fs/jefferson: new package, add 0.4.5

Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
David Roman
2024-03-21 12:58:17 +01:00
parent fad92656cc
commit e8cb86ee6e
4 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
diff --git a/jefferson/jffs2.py b/jefferson/jffs2.py
index ab1ac8f..1607bdc 100644
--- a/jefferson/jffs2.py
+++ b/jefferson/jffs2.py
@@ -9,7 +9,7 @@ import zlib
from pathlib import Path
import cstruct
-from lzallright import LZOCompressor as lzo
+import lzo
import jefferson.compression.jffs2_lzma as jffs2_lzma
import jefferson.compression.rtime as rtime
@@ -180,7 +180,7 @@ class Jffs2_raw_inode(cstruct.CStruct):
elif self.compr == JFFS2_COMPR_LZMA:
self.data = jffs2_lzma.decompress(node_data, self.dsize)
elif self.compr == JFFS2_COMPR_LZO:
- self.data = lzo.decompress(node_data)
+ self.data = lzo.decompress(node_data, False, self.dsize)
else:
print("compression not implemented", self)
print(node_data.hex()[:20])