From fdef8ca80ab6822a8f2b0fa5ca178503109cba9a Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 16 May 2017 17:40:16 +0100 Subject: Fix ModuleManager not being able to find make::configure. --- modulemanager | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'modulemanager') 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!"; } -- cgit v1.2.3