From: Łukasz Stelmach Date: Thu, 4 Apr 2024 10:50:07 +0000 (+0200) Subject: tizen: sd_fusing.py: Exit if A/B update is requested on unsupported target X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55d5d945a021e36d27ea7a06c66f206eb07f65df;p=platform%2Fkernel%2Ftizen-fusing-scripts.git tizen: sd_fusing.py: Exit if A/B update is requested on unsupported target This error occurs if the target class improperly inherits from SdFusingTarget instead of SdFusingTargetAB. Change-Id: I83379fff92566d0036a868837e613a9a9cd94f7e Signed-off-by: Łukasz Stelmach --- 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 = ()