Skip to content

Commit

Permalink
Remove pre-Distribution CURI shim
Browse files Browse the repository at this point in the history
  • Loading branch information
ugexe committed May 12, 2018
1 parent 2acbe7f commit 38a9204
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/core/CompUnit/Repository/Installation.pm6
Expand Up @@ -170,24 +170,7 @@ sub MAIN(:$name is copy, :$auth, :$ver, *@, *%) {
$!version = 2;
}

proto method install(|) {*}
multi method install($dist, %sources, %scripts?, %resources?, Bool :$force) {
# XXX: Deprecation shim
my %files;
%files{"bin/$_.key()"} = $_.value for %scripts.pairs;
%files{"resources/$_.key()"} = $_.value for %resources.pairs;
my %meta6 = %(
name => $dist.?name,
ver => $dist.?ver // $dist.?version,
api => $dist.?api,
auth => $dist.?auth // $dist.?authority,
provides => %sources,
files => %files,
);

return samewith(Distribution::Hash.new(%meta6, :prefix($*CWD)), :$force);
}
multi method install(Distribution $distribution, Bool :$force) {
method install(Distribution $distribution, Bool :$force) {
my $dist = CompUnit::Repository::Distribution.new($distribution);
my %files = $dist.meta<files>.grep(*.defined).map: -> $link {
$link ~~ Str ?? ($link => $link) !! ($link.keys[0] => $link.values[0])
Expand Down

0 comments on commit 38a9204

Please sign in to comment.