From 81fd6b084b0f3c0eb5a97c77592f5ceb21d2dfb1 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 2 Aug 2012 18:10:03 +0200 Subject: fdo#53006 Force reinstall of all bundled extensions on upgrade ...as the per-user data about bundled extensions can otherwise contain stale $BUNDLED_EXTENSIONS_PREREG references if the old installation used share/prereg/bundled/, the new one does not (cf. the fixing for fdo#51252 "LO cannot start (reports runtime error with Visual C++ Runtime Library)"), and a bundled extension did not change version. It is safe to tie this behavior to the existing "force" parameter of dp_misc::syncRepositories, as the only place that calls it with force=true is the call to Desktop::SynchronizeExtensionRepositories(newInst) in Desktop::Main, where newInst=true is the relevant condition for this behavior, too. As stated in XExtensionManager.idl, "this [...] can go again once no exisiting UserInstallation's user/extensions/bundled/ data can contain any $BUNDLED_EXTENSIONS_PREREG references any longer." Change-Id: I630dec8f2d20282ee47c65ac61ed2c9b062448e1 --- desktop/source/deployment/manager/dp_extensionmanager.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop/source/deployment/manager/dp_extensionmanager.hxx') diff --git a/desktop/source/deployment/manager/dp_extensionmanager.hxx b/desktop/source/deployment/manager/dp_extensionmanager.hxx index 800d91f437b6..05fcde825fbf 100644 --- a/desktop/source/deployment/manager/dp_extensionmanager.hxx +++ b/desktop/source/deployment/manager/dp_extensionmanager.hxx @@ -193,6 +193,7 @@ public: css::uno::RuntimeException); virtual sal_Bool SAL_CALL synchronize( + sal_Bool forceBundled, css::uno::Reference const & xAbortChannel, css::uno::Reference const & xCmdEnv ) throw (css::deployment::DeploymentException, -- cgit v1.2.3