Skip to content

Commit

Permalink
Merge pull request #1934 from rakudo/home-precomp-with-fix
Browse files Browse the repository at this point in the history
Prepend inst# to home when setting up repositories
  • Loading branch information
AlexDaniel committed Jun 19, 2018
2 parents 61878c3 + 91b211a commit dcd5259
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/CompUnit/RepositoryRegistry.pm6
Expand Up @@ -95,8 +95,7 @@ class CompUnit::RepositoryRegistry {
(nqp::existskey($ENV,'HOMEPATH')
?? nqp::atkey($ENV,'HOMEPATH') !! '')
) -> $home-path {
$home = "$home-path/.perl6";
my str $path = "inst#$home";
$home = "inst#$home-path/.perl6";
}
}

Expand Down Expand Up @@ -147,7 +146,7 @@ class CompUnit::RepositoryRegistry {
CompUnit::Repository::Installation.new(:prefix("$prefix/site"), :$next-repo)
)) unless nqp::existskey($unique, $site);
nqp::bindkey($custom-lib, 'home', $next-repo := self!register-repository(
"inst#$home/.perl6",
$home,
CompUnit::Repository::Installation.new(:prefix($home), :$next-repo)
)) if $home and not nqp::existskey($unique, $home);
}
Expand Down

0 comments on commit dcd5259

Please sign in to comment.