Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Another tiny improvement

  • Loading branch information...
commit 57d57e73502520671df9f68e4607be7fb42fff0d 1 parent 927d3fb
@tadzik authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/neutro
View
6 bin/neutro
@@ -103,9 +103,8 @@ sub install (Str $module, Bool $strict?) {
sub installdeps (Str $name) {
my $dir = cwd;
if 'deps.proto'.IO ~~ :f {
- my $depfile = slurp 'deps.proto';
- my @deps = $depfile.split: "\n";
- for @deps -> $dep {
+ my $fh = open 'deps.proto';
+ for $fh.lines -> $dep {
next if $dep ~~ /^\#/;
next if $dep eq '';
unless isinstalled $dep {
@@ -116,6 +115,7 @@ sub installdeps (Str $name) {
notice "$realdep installed, now back into $name";
}
}
+ $fh.close;
}
chdir $dir;
}
Please sign in to comment.
Something went wrong with that request. Please try again.