Skip to content

Commit

Permalink
Merge pull request #610 from imyxh/master
Browse files Browse the repository at this point in the history
`wl`: fix indentation in gpt check and be flexible
  • Loading branch information
bkerler authored Dec 31, 2024
2 parents cef0076 + 33ac4b0 commit bb26da0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions edlclient/Library/firehose_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,9 +784,12 @@ def handle_firehose(self, cmd, options):
return False
self.printer(f"Writing {filename} to partition {str(partition.name)}.")
self.firehose.cmd_program(lun, partition.sector, filename)
else:
self.printer("Couldn't write partition. Either wrong memorytype given or no gpt partition.")
return False
else:
if partname[0:3] == "gpt" or partname[-3:] == "xml":
self.printer(f"Can't find a partition named {partname} in the gpt, but continuing anyway.")
continue
self.error(f"Couldn't write partition {partname}. Either wrong memorytype given or no gpt partition.")
return False
return True
elif cmd == "ws":
if not self.check_param(["<start_sector>"]):
Expand Down

0 comments on commit bb26da0

Please sign in to comment.