commit | a5a72c358d1daf984fd7cf1c030773aa4e6b2f96 | [log] [tgz] |
---|---|---|
author | Guillaume Nodet <gnodet@apache.org> | Thu Mar 04 20:57:22 2010 +0000 |
committer | Guillaume Nodet <gnodet@apache.org> | Thu Mar 04 20:57:22 2010 +0000 |
tree | 0fda75697d83bd45b38e36a5c6b44ec873401823 | |
parent | f6131ada3dccf6e19bf6598b0ae57812f2239157 [diff] |
[bundlerepository] fix the NO_LOCAL_RESOURCES flag git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@919179 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/ResolverImpl.java b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/ResolverImpl.java index d4e19e3..fc9d2da 100644 --- a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/ResolverImpl.java +++ b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/ResolverImpl.java
@@ -208,10 +208,16 @@ // Clean up the resulting data structures. m_requiredSet.removeAll(m_addedSet); - m_requiredSet.removeAll(Arrays.asList(locals)); + if ((flags & NO_LOCAL_RESOURCES) == 0) + { + m_requiredSet.removeAll(Arrays.asList(locals)); + } m_optionalSet.removeAll(m_addedSet); m_optionalSet.removeAll(m_requiredSet); - m_optionalSet.removeAll(Arrays.asList(locals)); + if ((flags & NO_LOCAL_RESOURCES) == 0) + { + m_optionalSet.removeAll(Arrays.asList(locals)); + } // Return final result. return result;