summaryrefslogtreecommitdiff
path: root/modulemanager
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-03-24 21:55:29 +0000
committerPeter Powell <petpow@saberuk.com>2017-03-25 00:54:25 +0000
commit5c88e3df25dde6aa6ff849263a79ffda6144cf4d (patch)
tree9796b3e0da79be5743f158c0db8997827cf0a3bf /modulemanager
parentbaee503407fc6dbc25f0868e365f3129eff866e6 (diff)
Replace module_installed with eval.
Diffstat (limited to 'modulemanager')
-rwxr-xr-xmodulemanager4
1 files changed, 2 insertions, 2 deletions
diff --git a/modulemanager b/modulemanager
index 2681e8326..9f9c03344 100755
--- a/modulemanager
+++ b/modulemanager
@@ -26,10 +26,10 @@ use warnings FATAL => qw(all);
use make::common;
BEGIN {
- unless (module_installed("LWP::Simple")) {
+ unless (eval "use LWP::Simple; 1") {
die "Your system is missing the LWP::Simple Perl module!";
}
- unless (module_installed("Crypt::SSLeay") || module_installed("IO::Socket::SSL")) {
+ unless (eval "use Crypt::SSLeay; 1" || eval "use IO::Socket::SSL; 1") {
die "Your system is missing the Crypt::SSLeay or IO::Socket::SSL Perl modules!";
}