Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #497 from ugexe/patch-1
Distribution.provides initialization
  • Loading branch information
FROGGS committed Aug 16, 2015
2 parents 360ac8e + 3bb6333 commit 552f8ab
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 552f8ab

Please sign in to comment.