Skip to content
Permalink
Browse files

Use correct short names

Ensure we use the distribution short-name when referring to a distribution, and a module short-name when referring to a module.
  • Loading branch information...
ugexe committed Feb 2, 2019
1 parent 17a2bcc commit 92ebc333a61457e353151e376b8fdc080bfafdea
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/CompUnit/Repository/Installation.pm6
@@ -406,7 +406,6 @@ sub MAIN(:$name, :$auth, :$ver, *@, *%) {
!! $lookup.dir.map({
my ($ver, $auth, $api, $source, $checksum) = $_.slurp.split("\n");
$_.basename => {
name => $spec.short-name,
auth => $auth,
api => Version.new( $api || 0 ), # Create the Version objects once
ver => Version.new( $ver || 0 ), # (used to compare, and then sort)
@@ -572,7 +571,7 @@ sub MAIN(:$name, :$auth, :$ver, *@, *%) {

my $compunit = CompUnit.new(
:$handle,
:short-name($meta<name>),
:short-name($spec.short-name),
:version($meta<ver>),
:auth($meta<auth> // Str),
:repo(self),

0 comments on commit 92ebc33

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