releasetools: Fallback to calculated fp if partition fp is missing

This happens when the fingerprint property is blacklisted for the
purposes of unified device builds.

Change-Id: I9f8a5041248c3f73fce7a16da73cb8f68c06c8e2
This commit is contained in:
Aaron Kling 2021-02-17 14:10:32 -06:00 committed by Bartłomiej Rudecki
parent 8b69c4d0a0
commit 6ee8d10147
Signed by: przekichane
GPG key ID: 751F23C6F014EF76

View file

@ -675,7 +675,7 @@ class BuildInfo(object):
return self.GetBuildProp(key)
def GetPartitionFingerprint(self, partition):
return self._partition_fingerprints.get(partition, None)
return self._partition_fingerprints.get(partition, self.CalculateFingerprint())
def CalculatePartitionFingerprint(self, partition):
try: