From 85214948028e4caa2bf04b30b49176eb2bee3a53 Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Fri, 31 Jan 2014 10:39:58 -0600 Subject: Bug 427143 - [console] bundle and getPackages command return duplicate visible packages for split packages --- .../org/eclipse/equinox/console/commands/EquinoxCommandProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bundles/org.eclipse.equinox.console') diff --git a/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/EquinoxCommandProvider.java b/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/EquinoxCommandProvider.java index e362db025..57f60c334 100755 --- a/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/EquinoxCommandProvider.java +++ b/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/EquinoxCommandProvider.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2003, 2013 IBM Corporation and others. + * Copyright (c) 2003, 2014 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 @@ -1731,7 +1731,7 @@ public class EquinoxCommandProvider implements SynchronousBundleListener { } boolean sourceFound = false; for (PackageSource packageSource : packageSources) { - sourceFound |= packageCapability.equals(packageSource); + sourceFound |= packageCapability.equals(packageSource.getCapability()); if (sourceFound) { break; } -- cgit v1.2.3