diff options
author | Attila Molnar <attilamolnar@hush.com> | 2017-05-17 23:48:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-17 23:48:38 +0200 |
commit | eafabe15d68c0ea587432ae787b7cad0de0c02dd (patch) | |
tree | 9f685f9554063fdc53bd48813d8e2411de29cf43 | |
parent | f24239657e749d7d03f9dbafa4128c5720910153 (diff) | |
parent | fdef8ca80ab6822a8f2b0fa5ca178503109cba9a (diff) |
Merge pull request #1330 from SaberUK/insp20+mm-inc
[2.0] Fix ModuleManager not being able to find make::configure.
-rwxr-xr-x | modulemanager | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modulemanager b/modulemanager index b107f2c1f..42566d3b1 100755 --- a/modulemanager +++ b/modulemanager @@ -22,10 +22,15 @@ use strict; use warnings FATAL => qw(all); -use make::configure; - BEGIN { + require 5.8.0; push @INC, '.'; +} + +BEGIN { + # HACK: for some reason this needs to be in a second BEGIN block + # or it doesn't receive the updated @INC from above. + use make::configure; unless (module_installed("LWP::Simple")) { die "Your system is missing the LWP::Simple Perl module!"; } |