mirror of
https://huihui.cat/mirrors/MikroTikPatch.git
synced 2025-12-10 03:24:37 +01:00
Update npk.py
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
3c5ed64380
commit
5a8e9d19b3
1 changed files with 7 additions and 0 deletions
7
npk.py
7
npk.py
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue