Apply patch FELIX-4428 to fix bug in handling of fragment candidate capabilities.


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1589866 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/resolver/src/main/java/org/apache/felix/resolver/Candidates.java b/resolver/src/main/java/org/apache/felix/resolver/Candidates.java
index 257ba31..d3cce42 100644
--- a/resolver/src/main/java/org/apache/felix/resolver/Candidates.java
+++ b/resolver/src/main/java/org/apache/felix/resolver/Candidates.java
@@ -473,6 +473,9 @@
                             // a reference to a synthesized resource with attached
                             // fragments so we can correctly calculate its package
                             // space.
+                            // Must remove the fragment candidate because we must
+                            // only use hosted capabilities for package namespace
+                            candidates.remove(fragCand);
                             rc.insertHostedCapability(
                                 candidates,
                                 new WrappedCapability(