From 55d5d945a021e36d27ea7a06c66f206eb07f65df Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Stelmach?= Date: Thu, 4 Apr 2024 12:50:07 +0200 Subject: [PATCH] tizen: sd_fusing.py: Exit if A/B update is requested on unsupported target MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This error occurs if the target class improperly inherits from SdFusingTarget instead of SdFusingTargetAB. Change-Id: I83379fff92566d0036a868837e613a9a9cd94f7e Signed-off-by: Łukasz Stelmach --- sd_fusing.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sd_fusing.py b/sd_fusing.py index a3aea30..a34c203 100755 --- a/sd_fusing.py +++ b/sd_fusing.py @@ -163,6 +163,11 @@ class SdFusingTarget: return binaries def get_partition_index(self, binary): + if hasattr(self, 'update'): + logging.error("You have requested to update the {} partition set. " + "This target does not support A/B partition sets." + .format(self.update.upper())) + sys.exit(1) return self.binaries.get(binary, None) params = () -- 2.34.1