Skip to content
Permalink
Browse files

Be more careful with lazy meta data

  • Loading branch information...
ugexe committed Aug 5, 2017
1 parent a25d5fa commit 29d74709f4fe72ac7138b66d309a6413febe90a5
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/core/CompUnit/Repository/Installation.pm
@@ -366,9 +366,9 @@ sub MAIN(:$name, :$auth, :$ver, *@, *%) {
my $matches := $_.grep: { .meta<files>{$file}:exists }

my $absolutified-metas := $matches.map: {
my %meta = $_.meta;
%meta<source> = self!resources-dir.add(%meta<files>{$file});
%meta;
my $meta = $_.meta;
$meta<source> = self!resources-dir.add($meta<files>{$file});
$meta;
}

return $absolutified-metas.grep(*.<source>.e);
@@ -386,9 +386,9 @@ sub MAIN(:$name, :$auth, :$ver, *@, *%) {

with self.candidates($spec) {
my $absolutified-metas := $_.map: {
my %meta = $_.meta;
%meta<source> = self!resources-dir.add(%meta<source> || %meta<files>{$file});
%meta;
my $meta = $_.meta;
$meta<source> = self!resources-dir.add($meta<source> || $meta<files>{$file});
$meta;
}

return $absolutified-metas.grep(*.<source>.e);

0 comments on commit 29d7470

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