Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not load a module twice from Repository::Installation
Repository::FileSystem already had the check and the infrastructure was actually
in place, so just use it.
  • Loading branch information
niner committed Nov 21, 2015
1 parent 11116b6 commit 1ca7b51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/CompUnit/Repository/Installation.pm
Expand Up @@ -228,6 +228,7 @@ sub MAIN(:$name, :$auth, :$ver, *@, *%) {
&& $dver ~~ $spec.version-matcher
&& $dist<provides>{$spec.short-name}
{
return %!loaded{$spec.short-name} if %!loaded{$spec.short-name}:exists;
my $loader = $.prefix.child('sources').child(
$dist<provides>{$spec.short-name}<pm pm6>.first(*.so)<file>
);
Expand Down

0 comments on commit 1ca7b51

Please sign in to comment.