FBT: Don't auto-update API version (must follow OFW) --nobuild

This commit is contained in:
Willy-JL
2024-10-08 03:30:50 +01:00
parent ef84f22adf
commit cedbf0f2e3
+6 -5
View File
@@ -99,7 +99,8 @@ class SdkCache:
return ApiEntryState.DISABLED
elif entry in self.new_entries:
if isinstance(entry, SdkVersion):
return ApiEntryState.VERSION_PENDING
# return ApiEntryState.VERSION_PENDING
return ApiEntryState.APPROVED
return ApiEntryState.PENDING
else:
return ApiEntryState.APPROVED
@@ -118,10 +119,10 @@ class SdkCache:
if self._load_version_only:
raise Exception("Only SDK version was loaded, cannot save")
if self.version_action == VersionBump.MINOR:
self.version = SdkVersion(self.version.major, self.version.minor + 1)
elif self.version_action == VersionBump.MAJOR:
self.version = SdkVersion(self.version.major + 1, 0)
# if self.version_action == VersionBump.MINOR:
# self.version = SdkVersion(self.version.major, self.version.minor + 1)
# elif self.version_action == VersionBump.MAJOR:
# self.version = SdkVersion(self.version.major + 1, 0)
if self._have_pending_entries():
self.new_entries.add(self.version)