Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix wrappers not finding their scripts in upgraded repos
Wrappers look for script files using paths like 'bin/foo' instead of
'resources/bin/foo', so we may not prepend resources/ to those paths
even though the files to in fact exist in the resources/ directory.
  • Loading branch information
niner committed Jun 29, 2016
1 parent 0a1b86a commit 179eca8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/CompUnit/Repository/Installation.pm
Expand Up @@ -174,7 +174,8 @@ sub MAIN(:$name is copy, :$auth, :$ver, *@, *%) {
my $files = %meta<files> //= [];
for eager $files.keys -> $file {
$files{"resources/$file"} = $files{$file}:delete
if $resources-dir.child($files{$file}).e;
if $resources-dir.child($files{$file}).e
and not $.prefix.child($file).e; # bin/ is already included in the path
}
$dist-file.spurt: Rakudo::Internals::JSON.to-json(%meta);
}
Expand Down

0 comments on commit 179eca8

Please sign in to comment.