From 5fb3948ea10e63cd04ba47cffed82a2ba897d467 Mon Sep 17 00:00:00 2001 From: Casey Dahlin Date: Mon, 15 Dec 2008 11:55:19 -0500 Subject: Require all deps to agree on hold provisions --- state.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/state.rb b/state.rb index 23bf463..88291ae 100644 --- a/state.rb +++ b/state.rb @@ -305,7 +305,8 @@ class State unless candidates == [] candidates = candidates[0].product(*candidates[1..-1]).map{ |x| x.to_set } \ - .select{ |x| x.size == 0 or x.inject(true){ |st, y| st and y.rooted_in x } } + .select{ |x| x.size == 0 or x.inject(true){ |st, y| st and y.rooted_in x } } \ + .select{ |x| x.map{ |y| y.params.to_a }.inject([]){ |a, b| a + b }.uniq.map{ |y| y[0] }.is_uniq? } else candidates = [Set.new] end -- cgit