Ignore product.img

This commit is contained in:
Jakob Lell 2021-09-28 11:35:23 +02:00
parent 80f2f8bda8
commit 5910666822
1 changed files with 12 additions and 0 deletions

View File

@ -726,6 +726,16 @@ class IgnoreOemImgHandler(FileHandler):
return CheckFileResult.HANDLER_NO_MATCH
class IgnoreProductImgHandler(FileHandler):
"""
Handler to ignore oem.img files
"""
def check(self) -> CheckFileResult:
if self.fn == b'product.img' or self.fn.startswith(b'product.img.'):
return CheckFileResult.IGNORE
return CheckFileResult.HANDLER_NO_MATCH
class IgnoreAppsImgHandler(FileHandler):
"""
Handler to ignore apps.img (and apps_X.img) files
@ -1748,6 +1758,7 @@ class ArchiveDirectoryHandler:
IgnoreBootloaderHandler,
IgnoreOpImageHandler,
IgnoreOemImgHandler,
IgnoreProductImgHandler,
IgnoreElfHandler,
IgnoreVmlinuxHandler,
BootImageHandler,
@ -1846,6 +1857,7 @@ class ArchiveDirectoryHandler:
IgnoreBootloaderHandler,
IgnoreOpImageHandler,
IgnoreOemImgHandler,
IgnoreProductImgHandler,
IgnoreUpdateHwHandler, # Only for Pass 2
IgnoreHuaweiUserdataAppHandler,
IgnoreElfHandler,