Update npk.py

Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
elseif
2025-08-21 20:56:41 +08:00
committed by GitHub
parent 3c5ed64380
commit 5a8e9d19b3

7
npk.py
View File

@@ -208,6 +208,13 @@ class NovaPackage(Package):
else:
self._parts.append(NpkPartItem(NpkPartID(part_id),part_data))
def set_null_block(self):
has_squashfs = False
for part in self._parts:
if part.id == NpkPartID.SQUASHFS:
has_squashfs = True
break
if not has_squashfs:
return
if len(self._packages) > 0:
for package in self._packages:
count = 8