Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[bugfix] /bin wrapper requires CURLI object
CompUnitRepo::Local::Installation /bin wrappers work again.
  • Loading branch information
ugexe committed Jul 29, 2015
1 parent 3e88cf2 commit d35b76f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/CompUnitRepo/Local/Installation.pm
Expand Up @@ -37,7 +37,8 @@ sub MAIN(:$name, :$auth, :$ver, *@, *%) {
shift @*ARGS if $name;
shift @*ARGS if $auth;
shift @*ARGS if $ver;
my @installations = @*INC.grep( { .starts-with("inst#") } );
my @installations = @*INC.grep( { .starts-with("inst#") } )\
.map: { CompUnitRepo::Local::Installation.new(PARSE-INCLUDE-SPEC($_).[*-1]) };
my @binaries = @installations>>.files(\'bin/#name#\', :$name, :$auth, :$ver);
unless +@binaries {
@binaries = @installations>>.files(\'bin/#name#\');
Expand All @@ -64,7 +65,7 @@ sub MAIN(:$name, :$auth, :$ver, *@, *%) {
exit 1;
}
exit run($*EXECUTABLE_NAME, @binaries[0]<files><bin/#name#>, @*ARGS).exitcode
exit run($*EXECUTABLE-NAME, @binaries[0]<files><bin/#name#>, @*ARGS).exitcode
}';

method install(:$dist!, *@files) {
Expand Down

0 comments on commit d35b76f

Please sign in to comment.