mirror of
https://github.com/openwrt-xiaomi/xmir-patcher.git
synced 2026-09-22 22:57:55 +03:00
[read_info] Fix search partition by name
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ if len(sys.argv) > 1:
|
||||
if p < 0 or p >= len(dev.partlist):
|
||||
die('Partition "mtd{}" not found!'.format(a_part))
|
||||
else:
|
||||
p = dev.get_part_num(a_part, comptype = 'ends')
|
||||
p = dev.get_part_num(a_part)
|
||||
if p < 0:
|
||||
die('Partition "{}" not found!'.format(a_part))
|
||||
name = dev.partlist[p]['name']
|
||||
|
||||
Reference in New Issue
Block a user