Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #27 from laben/glr

Fix get_modules() for GLR
  • Loading branch information...
commit 69ebfc620878109218e89e7f448310cbe8792e2c 2 parents 3f2843c + caba7fb
@masak authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/ufo
View
4 bin/ufo
@@ -131,11 +131,11 @@ sub get_modules() {
my @module-files = find-file-by-ext(<lib lib6>, <pm pm6>);
my @modules = @module-files.map: { Module.new(lib-pm => $_) };
- my %modules-by-name = @modules>>.name Z @modules;
+ my %modules-by-name = @modules>>.name Z=> @modules;
for @modules {
# The grep is needed because 'find' prints a final newline, so there'll be an
# empty-string element at the end of the list.
- .dependencies.push: %modules-by-name{ dependencies(.lib-pm) }.grep: *.defined
+ .dependencies.push: %modules-by-name{ flat dependencies(.lib-pm) }.grep: *.defined
}
return @modules;
}
Please sign in to comment.
Something went wrong with that request. Please try again.