FELIX-1382. FileInstall attempts to uninstall SystemBundle. Patch provided by Sahoo
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@795520 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/fileinstall/src/main/java/org/apache/felix/fileinstall/Jar.java b/fileinstall/src/main/java/org/apache/felix/fileinstall/Jar.java
index dabf274..ecf59b6 100644
--- a/fileinstall/src/main/java/org/apache/felix/fileinstall/Jar.java
+++ b/fileinstall/src/main/java/org/apache/felix/fileinstall/Jar.java
@@ -23,6 +23,7 @@
import java.net.URISyntaxException;
import org.osgi.framework.Bundle;
+import org.osgi.framework.Constants;
/**
* This class is used to cache vital information of a jar file
@@ -59,7 +60,8 @@
// Normalisation is needed to ensure that we don't treat (e.g.)
// /tmp/foo and /tmp//foo differently.
String location = b.getLocation();
- if (location != null)
+ if (location != null &&
+ !location.equals(Constants.SYSTEM_BUNDLE_LOCATION))
{
URI uri;
try