[FIXED HUDSON-5981] allow plugins to add self-referencing project dependencies

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31935 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
mindless committed 2010-06-10 23:34:41 +00:00
1 parent 2bb5df0105
commit 0d53810761
1 file changed
-2
@@ -177,8 +177,6 @@ public final class DependencyGraph implements Comparator<AbstractProject> {
public void addDependency(Dependency dep) {
if(built)
throw new IllegalStateException();
if(dep.getUpstreamProject()==dep.getDownstreamProject())
return;
add(forward,dep.getUpstreamProject(),dep);
add(backward,dep.getDownstreamProject(),dep);
}