felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fili...@apache.org
Subject svn commit: r795520 - /felix/trunk/fileinstall/src/main/java/org/apache/felix/fileinstall/Jar.java
Date Sun, 19 Jul 2009 11:37:37 GMT
Author: filippo
Date: Sun Jul 19 11:37:37 2009
New Revision: 795520

URL: http://svn.apache.org/viewvc?rev=795520&view=rev
Log:
FELIX-1382. FileInstall attempts to uninstall SystemBundle. Patch provided by Sahoo

Modified:
    felix/trunk/fileinstall/src/main/java/org/apache/felix/fileinstall/Jar.java

Modified: felix/trunk/fileinstall/src/main/java/org/apache/felix/fileinstall/Jar.java
URL: http://svn.apache.org/viewvc/felix/trunk/fileinstall/src/main/java/org/apache/felix/fileinstall/Jar.java?rev=795520&r1=795519&r2=795520&view=diff
==============================================================================
--- felix/trunk/fileinstall/src/main/java/org/apache/felix/fileinstall/Jar.java (original)
+++ felix/trunk/fileinstall/src/main/java/org/apache/felix/fileinstall/Jar.java Sun Jul 19
11:37:37 2009
@@ -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



Mime
View raw message