Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2017-11-15 16:32:18 +0000
committerThomas Watson2017-11-15 16:32:44 +0000
commit399ac521ec3043355fe1a0daa2bb0f0483c28605 (patch)
tree6a3bb9052c4b4805745a710cfadc846c77891fa8 /bundles/org.eclipse.osgi
parentff045ea2ff997f4e4cf576d0dfb6c142b060f3f9 (diff)
downloadrt.equinox.framework-399ac521ec3043355fe1a0daa2bb0f0483c28605.tar.gz
rt.equinox.framework-399ac521ec3043355fe1a0daa2bb0f0483c28605.tar.xz
rt.equinox.framework-399ac521ec3043355fe1a0daa2bb0f0483c28605.zip
Bug 527302 - Issues installing bundles when a clean operation is initiated by StorageI20171115-2000
Diffstat (limited to 'bundles/org.eclipse.osgi')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java
index 728585915..9548fe962 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java
@@ -381,6 +381,10 @@ public class Storage {
if (location.isReadOnly() || !StorageUtil.rm(root, getConfiguration().getDebug().DEBUG_STORAGE)) {
equinoxContainer.getLogServices().log(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, "The -clean (osgi.clean) option was not successful. Unable to clean the storage area: " + root.getAbsolutePath(), null); //$NON-NLS-1$
}
+ if (!location.isReadOnly()) {
+ // make sure to recreate to root folder
+ root.mkdirs();
+ }
}
public ModuleDatabase getModuleDatabase() {

Back to the top