diff options
author | Joachim Lingner <jl@openoffice.org> | 2010-06-04 16:19:25 +0200 |
---|---|---|
committer | Joachim Lingner <jl@openoffice.org> | 2010-06-04 16:19:25 +0200 |
commit | 88581862df4e46ee0f6515267ffeb46a53d1ba53 (patch) | |
tree | a82dc7a3225ed317bcc562bec5c81220c5dee4be /desktop | |
parent | 227d80375c8c851fe74a035d882ae316922ba6f0 (diff) |
jl152 #i77196# information upate provider now excludes online updates with unfulfilled dependencies
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/manager/dp_informationprovider.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/desktop/source/deployment/manager/dp_informationprovider.cxx b/desktop/source/deployment/manager/dp_informationprovider.cxx index ca2c7b5438cf..4cc43a8386d8 100644 --- a/desktop/source/deployment/manager/dp_informationprovider.cxx +++ b/desktop/source/deployment/manager/dp_informationprovider.cxx @@ -246,7 +246,14 @@ PackageInformationProvider::isUpdateAvailable( const rtl::OUString& _sExtensionI rtl::OUString sOnlineVersion; if (info.info.is()) - sOnlineVersion = info.version; + { + // check, if there are unsatisfied dependencies and ignore this online update + dp_misc::DescriptionInfoset infoset(mxContext, info.info); + uno::Sequence< uno::Reference< xml::dom::XElement > > + ds( dp_misc::Dependencies::check( infoset ) ); + if ( ! ds.getLength() ) + sOnlineVersion = info.version; + } rtl::OUString sVersionUser; rtl::OUString sVersionShared; |