summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Oberlies2012-10-01 11:57:52 (EDT)
committerTobias Oberlies2012-10-01 12:00:38 (EDT)
commit9b046ca9e6e6cb390b787cb51bf5ed335ddc946d (patch)
treef979ba5da2cb2842374fe299d2a92df5418bb03a
parent5ff2bd944bf00db8f06f8a33ae7cc16eecee930c (diff)
downloadrt.equinox.p2-9b046ca9e6e6cb390b787cb51bf5ed335ddc946d.zip
rt.equinox.p2-9b046ca9e6e6cb390b787cb51bf5ed335ddc946d.tar.gz
rt.equinox.p2-9b046ca9e6e6cb390b787cb51bf5ed335ddc946d.tar.bz2
388566 Always publish IUs regardless of the statusv20121001-160038
- In order to preserve the old behaviour for callers that ignore the error status (like the PDE headless build), the created, potentially broken IUs need to be written to the metadata repository. This is the same as with artifacts, which are also written regardless of the status, so I don't see any problems with this behaviour. Bug: 388566 Published products are broken if included fragments are not in context
-rw-r--r--bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/Publisher.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/Publisher.java b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/Publisher.java
index 76df608..2ad155e 100644
--- a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/Publisher.java
+++ b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/Publisher.java
@@ -241,9 +241,7 @@ public class Publisher {
if (Tracing.DEBUG_PUBLISHING)
Tracing.debug("Publishing complete. Result=" + finalStatus); //$NON-NLS-1$
- // if there were no errors, publish all the ius.
- if (finalStatus.isOK() || finalStatus.matches(IStatus.INFO | IStatus.WARNING))
- savePublishedIUs();
+ savePublishedIUs();
if (!finalStatus.isOK())
return finalStatus;