Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2010-04-23 15:58:48 -0400
committerAndrew Niefer2010-04-23 15:58:48 -0400
commite8cfb0de35f0660ce195f27cabd0762c74e50e6d (patch)
tree0ac56d077495265ade6399b682fe2b6b1e58cc85 /bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse
parent386d2f6c6da38eeac681149813e82c2224f43c31 (diff)
downloadrt.equinox.p2-e8cfb0de35f0660ce195f27cabd0762c74e50e6d.tar.gz
rt.equinox.p2-e8cfb0de35f0660ce195f27cabd0762c74e50e6d.tar.xz
rt.equinox.p2-e8cfb0de35f0660ce195f27cabd0762c74e50e6d.zip
bug 310318 - don't remove IUs that had no artifacts when artifact filter is used
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse')
-rw-r--r--bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/RemoveIUTask.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/RemoveIUTask.java b/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/RemoveIUTask.java
index 566e522a1..447f605b0 100644
--- a/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/RemoveIUTask.java
+++ b/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/RemoveIUTask.java
@@ -81,7 +81,7 @@ public class RemoveIUTask extends AbstractRepositoryTask {
}
//we will only remove the metadata if all artifacts were removed
- boolean removeMetadata = true;
+ boolean removeMetadata = (filter != null ? keys.size() > 0 : true);
for (IArtifactKey key : keys) {
if (filter == null) {
artifacts.removeDescriptor(key);

Back to the top