mirror of
https://github.com/bkerler/edl.git
synced 2024-11-14 11:05:05 -05:00
fix erase to return when erase success
This commit is contained in:
parent
2ed24c090f
commit
cd450cb4fa
2 changed files with 6 additions and 9 deletions
|
@ -831,7 +831,6 @@ class firehose_client(metaclass=LogBase):
|
|||
luns = self.getluns(options)
|
||||
partitionname = options["<partitionname>"]
|
||||
partitions = partitionname.split(",")
|
||||
error = False
|
||||
for lun in luns:
|
||||
data, guid_gpt = self.firehose.get_gpt(lun, int(options["--gpt-num-part-entries"]),
|
||||
int(options["--gpt-part-entry-size"]),
|
||||
|
@ -847,14 +846,10 @@ class firehose_client(metaclass=LogBase):
|
|||
self.printer(
|
||||
f"Erased {partitionname} starting at sector {str(partition.sector)} " +
|
||||
f"with sector count {str(partition.sectors)}.")
|
||||
else:
|
||||
self.printer(
|
||||
f"Couldn't erase partition {partitionname}. Either wrong memorytype given or no gpt partition.")
|
||||
error = True
|
||||
continue
|
||||
if error:
|
||||
return False
|
||||
return True
|
||||
return True
|
||||
self.printer(
|
||||
f"Couldn't erase partition {partitionname}. Either wrong memorytype given or no gpt partition.")
|
||||
return False
|
||||
elif cmd == "ep":
|
||||
if not self.check_param(["<partitionname>", "<sectors>"]):
|
||||
return False
|
||||
|
|
2
test_script.sh
Executable file
2
test_script.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
./edl w xbl_a /home/bongb/web_qdl/agnos_images/xbl.img
|
||||
./edl reset
|
Loading…
Reference in a new issue