Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Distribution.provides initialization
Works around a rw parameter related 'Cannot assign to an immutable value' and allows `CompUnitRepo::Local::Installation.install` to finish.
  • Loading branch information
ugexe committed Aug 16, 2015
1 parent 360ac8e commit 3bb6333
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/CompUnitRepo/Local/Installation.pm
Expand Up @@ -94,10 +94,8 @@ sub MAIN(:$name, :$auth, :$ver, *@, *%) {
}

# Initialize "provides" section.
for %($d.provides).kv -> $k, $v is rw {
# when we do not use .kv, we error out when trying to store into Pairs
$v = {};
}
# when we do not use .kv, we error out when trying to store into Pairs
$d.provides.kv.map: -> $k, $ { $d.provides.{$k} = {} }

# Walk the to be installed files, decide whether we put them into
# "provides" or just "files".
Expand Down

0 comments on commit 3bb6333

Please sign in to comment.