NEW - bug 307340: [e3.5][discovery] binary distribution of discovery does not reflect source
https://bugs.eclipse.org/bugs/show_bug.cgi?id=307340
diff --git a/org.eclipse.mylyn.discovery.ui/src/org/eclipse/mylyn/internal/discovery/ui/PrepareInstallProfileJob_e_3_5.java b/org.eclipse.mylyn.discovery.ui/src/org/eclipse/mylyn/internal/discovery/ui/PrepareInstallProfileJob_e_3_5.java
index c9b2642..14cafc3 100644
--- a/org.eclipse.mylyn.discovery.ui/src/org/eclipse/mylyn/internal/discovery/ui/PrepareInstallProfileJob_e_3_5.java
+++ b/org.eclipse.mylyn.discovery.ui/src/org/eclipse/mylyn/internal/discovery/ui/PrepareInstallProfileJob_e_3_5.java
@@ -211,8 +211,7 @@
 						private boolean isQualifyingFeature(final Set<String> installableUnitIdsThisRepository,
 								String id) {
 							return id.endsWith(P2_FEATURE_GROUP_SUFFIX)
-									&& installableUnitIdsThisRepository.contains(id.substring(0,
-											id.indexOf(P2_FEATURE_GROUP_SUFFIX)));
+									&& installableUnitIdsThisRepository.contains(id);
 						}
 					};
 					repository.query(query, collector, new SubProgressMonitor(monitor, unit));