diff options
author | Thomas Watson | 2013-08-27 20:59:30 +0000 |
---|---|---|
committer | Thomas Watson | 2013-08-27 20:59:30 +0000 |
commit | f939cab3bf0e055aa3effb46a797da71d3cab815 (patch) | |
tree | 71196e11771f2a8312d5b6091312a66ebdaccd5a /bundles/org.eclipse.osgi | |
parent | 783d384074eb51fd2fad3fd150d7cb763ad10cda (diff) | |
download | rt.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.java | 2 |
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); |