Allow for directories in getEntries of bundles - this should allow for exploded bundles to work (FELIX-3004).

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1169677 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework.security/src/main/java/org/apache/felix/framework/security/util/BundleInputStream.java b/framework.security/src/main/java/org/apache/felix/framework/security/util/BundleInputStream.java
index c0eac02..240b198 100644
--- a/framework.security/src/main/java/org/apache/felix/framework/security/util/BundleInputStream.java
+++ b/framework.security/src/main/java/org/apache/felix/framework/security/util/BundleInputStream.java
@@ -57,7 +57,11 @@
         for (Enumeration e = m_root.getEntries(); e.hasMoreElements();)
         {
             String entry = (String) e.nextElement();
-            if (entry.equalsIgnoreCase("META-INF/MANIFEST.MF"))
+            if (entry.endsWith("/")) 
+            {
+                // ignore
+            } 
+            else if (entry.equalsIgnoreCase("META-INF/MANIFEST.MF"))
             {
                 if (manifest == null)
                 {