Merge branch 'blender-v4.3-release'

This commit is contained in:
Campbell Barton
2024-11-09 00:43:09 +11:00

View File

@@ -2075,12 +2075,22 @@ class EXTENSIONS_OT_package_upgrade_all(Operator, _ExtCmdMixIn):
error_fn=self.error_fn_from_exception,
)
repo_stats_calc()
# TODO: it would be nice to include this message in the banner.
def handle_error(ex):
self.report({'ERROR'}, str(ex))
# Ensure wheels are refreshed before re-enabling.
_extensions_repo_refresh_on_change(
repo_cache_store,
extensions_enabled=set(
(repo_item.module, pkg_id)
for (repo_item, pkg_id_sequence, result) in self._addon_restore
for pkg_id in pkg_id_sequence
),
compat_calc=True,
stats_calc=True,
)
_preferences_ensure_enabled_all(
addon_restore=self._addon_restore,
handle_error=handle_error,