diff options
author | Tobias Oberlies | 2012-09-28 17:41:24 +0000 |
---|---|---|
committer | Tobias Oberlies | 2012-09-28 18:03:32 +0000 |
commit | 1c6723a02e376f32c75daada80b9acc46bd1cd01 (patch) | |
tree | dade709ca1cdbbbf80d688be3e322d72e67673aa /bundles/org.eclipse.equinox.p2.metadata.repository | |
parent | d3f8376c143849bf553164fe053febd5cd602fbf (diff) | |
download | rt.equinox.p2-1c6723a02e376f32c75daada80b9acc46bd1cd01.tar.gz rt.equinox.p2-1c6723a02e376f32c75daada80b9acc46bd1cd01.tar.xz rt.equinox.p2-1c6723a02e376f32c75daada80b9acc46bd1cd01.zip |
356561 Require that all children of a composite repository can be loadedv20120928-180332
- Loading a composite repository now fails if any of its children
cannot be loaded. So in case of transient network problems, a p2
operation now fails fast, instead of generating obscure (and
possibly severe, yet unnoticed) follow-up problems.
- p2 repository providers who rely on the old, lenient behaviour may
re-enable it by adding the property 'p2.atomic.composite.loading'
with value 'false' in their compositeContent.xml/
compositeArtifact.xml.
- p2 clients who need to communicate with broken composite
repositories which are out of maintenance can revert to the old
behaviour by setting the system property
eclipse.p2.atomic.composite.loading.default=false.
Bug: 356561 Composite Repositories have non-deterministic content by default
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.metadata.repository')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/CompositeMetadataRepository.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/CompositeMetadataRepository.java b/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/CompositeMetadataRepository.java index ad4de6f8e..a1ac23620 100644 --- a/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/CompositeMetadataRepository.java +++ b/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/CompositeMetadataRepository.java @@ -37,7 +37,9 @@ public class CompositeMetadataRepository extends AbstractMetadataRepository impl static final public String REPOSITORY_TYPE = CompositeMetadataRepository.class.getName(); static final public String PI_REPOSITORY_TYPE = "compositeMetadataRepository"; //$NON-NLS-1$ static final public String PROP_ATOMIC_LOADING = "p2.atomic.composite.loading"; //$NON-NLS-1$ - static final public boolean ATOMIC_LOADING_DEFAULT = false; + + // by default, require that all children of a composite can be loaded; default may be changed to enforce old behavior (see bug 356561) + static final public boolean ATOMIC_LOADING_DEFAULT = !"false".equals(Activator.getContext().getProperty("eclipse.p2.atomic.composite.loading.default")); //$NON-NLS-1$//$NON-NLS-2$; static final private Integer REPOSITORY_VERSION = new Integer(1); static final public String XML_EXTENSION = ".xml"; //$NON-NLS-1$ |