Skip to content
Browse files

In a long dependency chain, ensure that some projects don't get insta…

…lled twice
  • Loading branch information...
1 parent dc81db8 commit fcfec5193fce36b18006c1f53e55dc1da4966ca0 @tadzik committed
Showing with 5 additions and 3 deletions.
  1. +2 −0 lib/Pies.pm
  2. +3 −3 t/stubs.t
View
2 lib/Pies.pm
@@ -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);
}
}
View
6 t/stubs.t
@@ -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.
Something went wrong with that request. Please try again.