Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Promote $precomp to a positional argument again
CompUnit::Repository requires $precomp to be positional.
These have only been nameds while we needed to pass GLOBALish, too.
  • Loading branch information
niner committed Nov 5, 2015
1 parent 025dba9 commit 78c7c56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/CompUnit/Repository/FileSystem.pm
Expand Up @@ -12,7 +12,7 @@ class CompUnit::Repository::FileSystem does CompUnit::Repository::Locally does C

method need(
CompUnit::DependencySpecification $spec,
CompUnit::PrecompilationRepository :$precomp = self.precomp-repository(),
CompUnit::PrecompilationRepository $precomp = self.precomp-repository(),
:$line
)
returns CompUnit:D
Expand Down Expand Up @@ -68,7 +68,7 @@ class CompUnit::Repository::FileSystem does CompUnit::Repository::Locally does C
return %!loaded{$compunit.name} = $compunit;
}

return self.next-repo.need($spec, :$precomp, :$line) if self.next-repo;
return self.next-repo.need($spec, $precomp, :$line) if self.next-repo;
nqp::die("Could not find $spec in:\n" ~ $*REPO.repo-chain.map(*.Str).join("\n").indent(4));
}

Expand Down
4 changes: 2 additions & 2 deletions src/core/CompUnit/Repository/Installation.pm
Expand Up @@ -188,7 +188,7 @@ See http://design.perl6.org/S22.html#provides for more information.\n";

method need(
CompUnit::DependencySpecification $spec,
CompUnit::PrecompilationRepository :$precomp = self.precomp-repository(),
CompUnit::PrecompilationRepository $precomp = self.precomp-repository(),
:$line
)
returns CompUnit:D
Expand Down Expand Up @@ -226,7 +226,7 @@ See http://design.perl6.org/S22.html#provides for more information.\n";
}
}
}
return self.next-repo.need($spec, :$precomp, :$line) if self.next-repo;
return self.next-repo.need($spec, $precomp, :$line) if self.next-repo;
nqp::die("Could not find $spec in:\n" ~ $*REPO.repo-chain.map(*.Str).join("\n").indent(4));
}

Expand Down

0 comments on commit 78c7c56

Please sign in to comment.