mirror of
https://github.com/elseif/MikroTikPatch
synced 2026-07-17 10:39:40 +00:00
Update npk.py
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
3c5ed64380
commit
5a8e9d19b3
7
npk.py
7
npk.py
@ -208,6 +208,13 @@ class NovaPackage(Package):
|
|||||||
else:
|
else:
|
||||||
self._parts.append(NpkPartItem(NpkPartID(part_id),part_data))
|
self._parts.append(NpkPartItem(NpkPartID(part_id),part_data))
|
||||||
def set_null_block(self):
|
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:
|
if len(self._packages) > 0:
|
||||||
for package in self._packages:
|
for package in self._packages:
|
||||||
count = 8
|
count = 8
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user