return [self.binaries.get(binary, None)]
def get_raw_binary_sector(self, binary):
- if hasattr(self, "raw_binary_table"):
- for entry in self.raw_binary_table:
- if entry['binaries'] == binary:
- return entry['start_sector'];
- return None
- else:
+ if not hasattr(self, "raw_binary_table"):
return None
+ for entry in self.raw_binary_table:
+ if entry['binaries'] == binary:
+ return entry['start_sector'];
+ return None
+
def ensure_parttable(self):
logging.notice(f"Verifying that partition table on {Device} matches target specification")
for partnum, part in enumerate(self.part_table, 1):