Update release script to copy R8 SBOM.
Fixes: b/280466318
Change-Id: I2e1ba01d6c77bccf18bb0448be0243561c067a36
diff --git a/tools/utils.py b/tools/utils.py
index db9844e..06fc3a7 100644
--- a/tools/utils.py
+++ b/tools/utils.py
@@ -720,8 +720,6 @@
# Build metadata currently not suppported
def larger_than(self, other):
- if self.prerelease or other.prerelease:
- raise Exception("Comparison with prerelease not implemented")
if self.major > other.major:
return True
if self.major == other.major and self.minor > other.minor:
@@ -729,6 +727,12 @@
if self.patch:
return (self.major == other.major and self.minor == other.minor and
self.patch > other.patch)
+ if self.prerelease:
+ if other.prerelease:
+ return self.prerelease > other.prerelease
+ else:
+ return False
+
else:
return False