summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2011-12-21 17:31:34 +0000
committerShea Levy <shea@shealevy.com>2011-12-21 17:31:34 +0000
commitb4cee3f816ad53f9762f38c28b51a78732b249f2 (patch)
treead85a7def31eef6028b72a1152d3bfcaef572193 /src/libstore
parentf3c88f297d837f73d8123cb12564d237d7d0df87 (diff)
downloadguix-b4cee3f816ad53f9762f38c28b51a78732b249f2.tar.gz
Revert previous commit
It doesn't detect indirect references
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/build.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 2ebcbf5a8f..a8ef9b23ef 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1986,15 +1986,6 @@ void DerivationGoal::computeClosure()
         info.deriver = drvPath;
         infos.push_back(info);
     }
-
-    /* Mutually recursive outputs are not allowed */
-    foreach (ValidPathInfos::iterator, i, infos)
-        foreach (ValidPathInfos::iterator, j, infos)
-            if ((i->path != j->path) &&
-                (i->references.find(j->path) != i->references.end()) &&
-                (j->references.find(i->path) != j->references.end())) 
-                    throw BuildError(format("Mutually referential outputs are not allowed: outputs `%1%' and `%2%' refer to each other") % i->path % j->path);
-
     worker.store.registerValidPaths(infos);
 
     /* It is now safe to delete the lock files, since all future