If there is no raw_binary_table, it doesn't work fine with below
message. RPI4/VF2 don't have raw_binary_table attribute.
AttributeError: 'Rpi4' object has no attribute 'raw_binary_table'
Change-Id: I379a87d9731fe82a3a32f54b38eb533b1ca4f885
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
import tarfile
import tempfile
-__version__ = "1.1.8"
+__version__ = "1.1.9"
Format = False
Device = ""
return [self.binaries.get(binary, None)]
def get_raw_binary_sector(self, binary):
- for entry in self.raw_binary_table:
- if entry['binaries'] == binary:
- return entry['start_sector'];
- return None
+ if hasattr(self, "raw_binary_table"):
+ for entry in self.raw_binary_table:
+ if entry['binaries'] == binary:
+ return entry['start_sector'];
+ return None
+ else:
+ return None
def ensure_parttable(self):
logging.notice(f"Verifying that partition table on {Device} matches target specification")