Skip to content
Browse files

Fix resource content lookup for Distribution::Path

Fixes content lookup on a Distribution::Path with a parameter starting with 'resources/libraries/` since the platform specific name will be known to some Distributions.
  • Loading branch information...
ugexe committed Dec 15, 2018
1 parent 0f3c370 commit 370310b35e9a755229b0b8bb9a18e3708dfbf6b9
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/Distribution.pm6
@@ -78,7 +78,8 @@ role Distribution {
role Distribution::Locally does Distribution {
has IO::Path $.prefix;
method content($address) {
my $handle = path =>$address, :CWD($!prefix // $*CWD));
my $path =$.meta<files>{$address} // $address, :CWD($!prefix.absolute // $*CWD.absolute));
my $handle =$path);
$handle // $handle.throw;

0 comments on commit 370310b

Please sign in to comment.
You can’t perform that action at this time.