Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use the precomp repository of the head of the chain on installation
The need method is passed the precomp repository by its predecessor in the
chain. The install method is called directly but it still needs to use the
head's precomp repository as the full chain is used to resolve
dependencies during precompilation and we want to install into the store
that is actually used for loading.
  • Loading branch information
niner committed Nov 21, 2015
1 parent 1ca7b51 commit 3c814de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/CompUnit/Repository/Installation.pm
Expand Up @@ -160,7 +160,7 @@ sub MAIN(:$name, :$auth, :$ver, *@, *%) {

$dist-dir.child($d.id).spurt: to-json($d.Hash);

my $precomp = self.precomp-repository;
my $precomp = $*REPO.precomp-repository;
for $d.provides.values.map(*.values[0]<file>) -> $file-id {
my $source = $sources-dir.child($file-id);
if $precomp.may-precomp {
Expand Down

0 comments on commit 3c814de

Please sign in to comment.