Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2013-08-27 20:59:30 +0000
committerThomas Watson2013-08-27 20:59:30 +0000
commitf939cab3bf0e055aa3effb46a797da71d3cab815 (patch)
tree71196e11771f2a8312d5b6091312a66ebdaccd5a /bundles/org.eclipse.osgi
parent783d384074eb51fd2fad3fd150d7cb763ad10cda (diff)
downloadrt.equinox.framework-f939cab3bf0e055aa3effb46a797da71d3cab815.tar.gz
rt.equinox.framework-f939cab3bf0e055aa3effb46a797da71d3cab815.tar.xz
rt.equinox.framework-f939cab3bf0e055aa3effb46a797da71d3cab815.zip
Check to make sure there is a valid bundle file at update time.I20130828-1000
Diffstat (limited to 'bundles/org.eclipse.osgi')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/Storage.java2
1 files changed, 2 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 af40ec14f..fe4d81c69 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
@@ -645,6 +645,8 @@ public class Storage {
try {
File contentFile = getContentFile(staged, isReference, bundleInfo.getBundleId(), newGen.getGenerationId());
newGen.setContent(contentFile, isReference);
+ // Check that we can open the bundle file
+ newGen.getBundleFile().open();
setStorageHooks(newGen);
ModuleRevisionBuilder builder = getBuilder(newGen);

Back to the top