summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorJoachim Lingner <jl@openoffice.org>2010-06-04 16:19:25 +0200
committerJoachim Lingner <jl@openoffice.org>2010-06-04 16:19:25 +0200
commit88581862df4e46ee0f6515267ffeb46a53d1ba53 (patch)
treea82dc7a3225ed317bcc562bec5c81220c5dee4be /desktop
parent227d80375c8c851fe74a035d882ae316922ba6f0 (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.cxx9
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;