Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
In a long dependency chain, ensure that some projects don't get insta…
…lled twice
  • Loading branch information
Tadeusz Sośnierz committed Jan 10, 2013
1 parent dc81db8 commit fcfec51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/Pies.pm
Expand Up @@ -77,6 +77,8 @@ class Pies {
$notests, $isdep as Bool) {
unless $nodeps {
for self.deps-helper($bone) {
next unless $.ecosystem.project-get-state($bone)
eq 'absent';
self.resolve-helper($_, $nodeps, $notests, 1);
}
}
Expand Down
6 changes: 3 additions & 3 deletions t/stubs.t
Expand Up @@ -125,9 +125,9 @@ check-mock($i, *.called('install', times => 4));

$p.resolve($proj.name, :notests);

check-mock($f, *.called('fetch', times => 7));
check-mock($b, *.called('build', times => 7));
check-mock($f, *.called('fetch', times => 5));
check-mock($b, *.called('build', times => 5));
check-mock($t, *.called('test', times => 4));
check-mock($i, *.called('install', times => 7));
check-mock($i, *.called('install', times => 5));

# vim: ft=perl6

0 comments on commit fcfec51

Please sign in to comment.