Fix ModuleManager not being able to find make::configure.

This commit is contained in:
Peter Powell 2017-05-16 17:40:16 +01:00
parent 1daaf3b84d
commit fdef8ca80a

View File

@ -22,10 +22,15 @@
use strict;
use warnings FATAL => qw(all);
use make::configure;
BEGIN {
require 5.8.0;
push @INC, '.';
}
BEGIN {
push @INC, '.';
# 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!";
}