Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2009-02-19 16:32:44 -0500
committerAndrew Niefer2009-02-19 16:32:44 -0500
commit6640e2379b5f29cffcccba677cd9c3d7c36b5647 (patch)
tree5d3c9da284da160607637d46698efcc788be3bcf /bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse
parent9c83803d59cc193e015869b9ff9ea38c7a67127c (diff)
downloadrt.equinox.p2-6640e2379b5f29cffcccba677cd9c3d7c36b5647.tar.gz
rt.equinox.p2-6640e2379b5f29cffcccba677cd9c3d7c36b5647.tar.xz
rt.equinox.p2-6640e2379b5f29cffcccba677cd9c3d7c36b5647.zip
bug 265526 - repo2Runnable fails if no IUs specified
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/Repo2RunnableTask.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/Repo2RunnableTask.java b/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/Repo2RunnableTask.java
index f8fb89e26..5c84ff036 100644
--- a/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/Repo2RunnableTask.java
+++ b/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/Repo2RunnableTask.java
@@ -44,7 +44,7 @@ public class Repo2RunnableTask extends AbstractRepositoryTask {
prepareSourceRepos();
application.initializeRepos(null);
List ius = prepareIUs();
- if (ius == null || ius.size() == 0)
+ if ((ius == null || ius.size() == 0) && (sourceRepos == null || sourceRepos.isEmpty()))
throw new BuildException("Need to specify either a non-empty source metadata repository or a valid list of IUs.");
application.setSourceIUs(ius);
IStatus result = application.run(null);

Back to the top