]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix ModuleManager not being able to find make::configure.
authorPeter Powell <petpow@saberuk.com>
Tue, 16 May 2017 16:40:16 +0000 (17:40 +0100)
committerPeter Powell <petpow@saberuk.com>
Tue, 16 May 2017 17:50:15 +0000 (18:50 +0100)
modulemanager

index b107f2c1fad62032d1b07dd6fd60de7e8374859e..42566d3b1ce77f4ed738cbd4062e8868e08b7cb6 100755 (executable)
 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!";
        }