diff options
author | Peter Powell <petpow@saberuk.com> | 2017-05-16 17:40:16 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-05-16 18:50:15 +0100 |
commit | fdef8ca80ab6822a8f2b0fa5ca178503109cba9a (patch) | |
tree | c1163e28b444e8651212e5c94158d81be81e2b1d /modulemanager | |
parent | 1daaf3b84d87e543ee43c2f8b9b3cd0a02787424 (diff) |
Fix ModuleManager not being able to find make::configure.
Diffstat (limited to 'modulemanager')
-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!"; } |