Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2008-01-02 22:25:10 +0000
committerJohn Arthorne2008-01-02 22:25:10 +0000
commit9ad63ae2a1bb8f4b7a0d4818f03ca46ff6ac4977 (patch)
tree0704ad6ac1b7e1da9cacb0b3e5d24ceb9eaf387e /bundles/org.eclipse.equinox.p2.updatechecker/src
parenta71437cdbf4728d41dfe4f922bfe423d9f419143 (diff)
downloadrt.equinox.p2-9ad63ae2a1bb8f4b7a0d4818f03ca46ff6ac4977.tar.gz
rt.equinox.p2-9ad63ae2a1bb8f4b7a0d4818f03ca46ff6ac4977.tar.xz
rt.equinox.p2-9ad63ae2a1bb8f4b7a0d4818f03ca46ff6ac4977.zip
Bug 192467 [prov] [repo] IMetadataRepository to return Iteration of InstallableUnits
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.updatechecker/src')
-rw-r--r--bundles/org.eclipse.equinox.p2.updatechecker/src/org/eclipse/equinox/p2/updatechecker/UpdateChecker.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.updatechecker/src/org/eclipse/equinox/p2/updatechecker/UpdateChecker.java b/bundles/org.eclipse.equinox.p2.updatechecker/src/org/eclipse/equinox/p2/updatechecker/UpdateChecker.java
index 5c7866b0e..c6e34295a 100644
--- a/bundles/org.eclipse.equinox.p2.updatechecker/src/org/eclipse/equinox/p2/updatechecker/UpdateChecker.java
+++ b/bundles/org.eclipse.equinox.p2.updatechecker/src/org/eclipse/equinox/p2/updatechecker/UpdateChecker.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007 IBM Corporation and others.
+ * Copyright (c) 2007, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -18,6 +18,8 @@ import org.eclipse.equinox.p2.director.IPlanner;
import org.eclipse.equinox.p2.engine.IProfileRegistry;
import org.eclipse.equinox.p2.engine.Profile;
import org.eclipse.equinox.p2.metadata.IInstallableUnit;
+import org.eclipse.equinox.p2.metadata.query.InstallableUnitQuery;
+import org.eclipse.equinox.p2.query.Collector;
/**
* An UpdateChecker periodically polls for updates to specified profiles and
@@ -109,7 +111,7 @@ public class UpdateChecker {
// TODO this is naive. We get all the ius every time whereas we
// could monitor changes in the profile.
ArrayList iusWithUpdates = new ArrayList();
- Iterator iter = profile.getInstallableUnits();
+ Iterator iter = profile.query(InstallableUnitQuery.ANY, new Collector(), null).iterator();
while (iter.hasNext()) {
IInstallableUnit iu = (IInstallableUnit) iter.next();
IInstallableUnit[] replacements = getPlanner().updatesFor(iu, null);

Back to the top