You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by fi...@apache.org on 2009/07/19 13:37:37 UTC
svn commit: r795520 -
/felix/trunk/fileinstall/src/main/java/org/apache/felix/fileinstall/Jar.java
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