Commit a basic fix for FELIX-1650. Remove ;singleton:=true from the symbolic name during the local repository computation. 


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@819671 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalRepositoryImpl.java b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalRepositoryImpl.java
index 6c3eee3..8dad29b 100644
--- a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalRepositoryImpl.java
+++ b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalRepositoryImpl.java
@@ -291,7 +291,13 @@
                 String key = (String) keys.nextElement();
                 if (key.equalsIgnoreCase(Constants.BUNDLE_SYMBOLICNAME))
                 {
-                    put(Resource.SYMBOLIC_NAME, (String) dict.get(key));
+                    String sn = (String) dict.get(key);
+                    sn = sn.trim();
+                    int index = sn.indexOf(";singleton:=true");
+                    if (index != -1) {
+                        sn = sn.substring(0, index);
+                    }
+                    put(Resource.SYMBOLIC_NAME, sn);    
                 }
                 else if (key.equalsIgnoreCase(Constants.BUNDLE_NAME))
                 {
@@ -445,4 +451,4 @@
         }
 
     }
-}
\ No newline at end of file
+}