diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-22 14:05:04 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-22 14:05:04 +0000 |
commit | e1bd46902c96f986e1b9bcc9782d42534465f714 (patch) | |
tree | 84b3fbfeccb1c25e99955aad523674ef6db79869 /desktop/source/pkgchk/unopkg | |
parent | 6ccaa84b4d4f6964970e6f4606b433e9ad37b47f (diff) |
INTEGRATION: CWS jl79 (1.7.26); FILE MERGED
2007/11/02 08:59:47 jl 1.7.26.3: #i82775# unopkg disposed the bridges of the office. Now it does this only with the local bridges
2007/11/01 13:24:41 jl 1.7.26.2: RESYNC: (1.7-1.8); FILE MERGED
2007/11/01 12:55:43 jl 1.7.26.1: #i82775# Extension Manager in office can accept installation requests from unopkg processes even if the Extension Manager dialog is open.
Diffstat (limited to 'desktop/source/pkgchk/unopkg')
-rw-r--r-- | desktop/source/pkgchk/unopkg/unopkg_app.cxx | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_app.cxx b/desktop/source/pkgchk/unopkg/unopkg_app.cxx index c513a90d50ae..ae855b6e56a0 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_app.cxx +++ b/desktop/source/pkgchk/unopkg/unopkg_app.cxx @@ -5,9 +5,9 @@ * * $RCSfile: unopkg_app.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: vg $ $Date: 2007-10-15 13:00:59 $ + * last change: $Author: ihi $ $Date: 2007-11-22 15:05:04 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -236,6 +236,7 @@ SAL_IMPLEMENT_MAIN() s_option_infos, OUSTR("version") ); Reference<XComponentContext> xComponentContext; + Reference<XComponentContext> xLocalComponentContext; try { sal_uInt32 nPos = 0; @@ -301,7 +302,7 @@ SAL_IMPLEMENT_MAIN() } } - xComponentContext = getUNO( disposeGuard, option_verbose, subcmd_gui ); + xComponentContext = getUNO( disposeGuard, option_verbose, subcmd_gui, xLocalComponentContext ); if (deploymentContext.getLength() == 0) { deploymentContext = option_shared ? OUSTR("shared") : OUSTR("user"); @@ -404,18 +405,10 @@ SAL_IMPLEMENT_MAIN() } else if (subCommand.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("gui") )) { - - ::std::size_t cUrls = cmdPackages.size(); - ::boost::scoped_array<OUString> sarUrls(new OUString[cUrls]); - OUString * arString = sarUrls.get(); - - for ( ::std::size_t pos = 0; pos < cUrls; ++pos ) - { - arString[pos] = cmdPackages[pos]; - } Reference<ui::dialogs::XAsynchronousExecutableDialog> xDialog( deployment::ui::PackageManagerDialog::createAndInstall( - xComponentContext, Sequence<OUString>(arString, cUrls), deploymentContext) ); + xComponentContext, + cmdPackages.size() > 0 ? cmdPackages[0] : OUString() )); osl::Condition dialogEnded; dialogEnded.reset(); @@ -439,7 +432,7 @@ SAL_IMPLEMENT_MAIN() if (option_verbose) printf( "\n%s done.\n", APP_NAME ); //Force to release all bridges which connect us to the child processes - disposeBridges(xComponentContext); + disposeBridges(xLocalComponentContext); return 0; } catch (ucb::CommandFailedException &) { @@ -469,7 +462,7 @@ SAL_IMPLEMENT_MAIN() ::comphelper::anyToString(exc) : e.Message, textenc).getStr() ); } fprintf( stderr, "\n%s failed.\n", APP_NAME ); - disposeBridges(xComponentContext); + disposeBridges(xLocalComponentContext); return 1; } |