Created
August 19, 2015 14:20
-
-
Save anonymous/c6e198e31a82fff5e0cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 2597dfbe5bc23deb02f27ac8a1e4346e497e23fb Mon Sep 17 00:00:00 2001 | |
From: Luca Bennati <labensigma@gmail.com> | |
Date: Wed, 19 Aug 2015 16:16:11 +0200 | |
Subject: [PATCH] Fix module dependencies for GLR | |
--- | |
bin/ufo | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
diff --git a/bin/ufo b/bin/ufo | |
index 36cdbf1..267d9ba 100755 | |
--- a/bin/ufo | |
+++ b/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{ dependencies(.lib-pm).list }.grep: *.defined | |
} | |
return @modules; | |
} | |
-- | |
2.5.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment