summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-08-24 16:45:20 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-08-29 20:18:29 +0000
commit6d261e7aac12a876acb6496085e5329632595d39 (patch)
treed2edcd362e94650298a0d0d8b0b44d0aa4752618 /offapi
parentb4f8acb41165a28b2db47acd3c6b624a4c507c54 (diff)
fdo#53968 etc.: Fix more "doesn't start after upgrade" problems
* fdo#53968 revealed that multiple soffice.bin instances can run removeTree in parallel. Therefore, demoted failures from exceptions to SAL_WARNs. (And keeping fingers crossed.) * a8cdce148c76c93c5d41820610d6e6ac175e03a7 "fdo#53655: Ignore failure to remove directories (as happens on Windows XP)" was due to a forgotten osl::Directory::close before calling osl::Directory::remove after all. * UserInstallations have been seen in the wild where no extensions were installed per-user (any longer), but user/uno_packages/cache/registry/ com.sun.star.comp.deployment.component.PackageRegistryBackend/*.rdb files contained data nevertheless. To reliably clean out any old junk, refreshBundledExtensionsDir has been extended to cleanExtensionsCache which in tandem with an extended Desktop::SynchronizeExtensionRepositories now cleanly re-installs all bundled, shared, and per-user extensions after a LO upgrade. Change-Id: Ic6b5b6c1945d76eb3a65b6cd4512a657b7a835a0 Reviewed-on: https://gerrit.libreoffice.org/477 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/deployment/XExtensionManager.idl4
-rw-r--r--offapi/com/sun/star/deployment/XPackageManager.idl4
2 files changed, 8 insertions, 0 deletions
diff --git a/offapi/com/sun/star/deployment/XExtensionManager.idl b/offapi/com/sun/star/deployment/XExtensionManager.idl
index b68ab209e5fd..2912e457a03c 100644
--- a/offapi/com/sun/star/deployment/XExtensionManager.idl
+++ b/offapi/com/sun/star/deployment/XExtensionManager.idl
@@ -260,6 +260,9 @@ interface XExtensionManager
<p>
Please use this in case of suspected cache inconsistencies only.
</p>
+ @param force
+ set to true when called during soffice bootstrap after cleaning
+ old extension cache
@param repositroy
the name of the repository
@param xAbortChannel
@@ -268,6 +271,7 @@ interface XExtensionManager
command environment for error and progress handling
*/
void reinstallDeployedExtensions(
+ [in] boolean force,
[in] string repository,
[in] com::sun::star::task::XAbortChannel xAbortChannel,
[in] com::sun::star::ucb::XCommandEnvironment xCmdEnv )
diff --git a/offapi/com/sun/star/deployment/XPackageManager.idl b/offapi/com/sun/star/deployment/XPackageManager.idl
index 12e7e0eac80c..39ff04a0354a 100644
--- a/offapi/com/sun/star/deployment/XPackageManager.idl
+++ b/offapi/com/sun/star/deployment/XPackageManager.idl
@@ -225,12 +225,16 @@ interface XPackageManager
Please use this in case of suspected cache inconsistencies only.
</p>
+ @param force
+ set to true when called during soffice bootstrap after cleaning
+ old extension cache
@param xAbortChannel
abort channel to asynchronously abort the adding process
@param xCmdEnv
command environment for error and progress handling
*/
void reinstallDeployedPackages(
+ [in] boolean force,
[in] com::sun::star::task::XAbortChannel xAbortChannel,
[in] com::sun::star::ucb::XCommandEnvironment xCmdEnv )
raises (DeploymentException,