summaryrefslogtreecommitdiff
path: root/modulemanager
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2012-11-07 09:07:43 +0000
committerattilamolnar <attilamolnar@hush.com>2012-11-08 01:07:38 +0100
commit999ba802d61bdc188858e3c1b9fb0d974f537779 (patch)
treece66b176f53efa0f78ce07d256d9d485ff05bb55 /modulemanager
parente74da8e6e931326ef833c7bd5bab2fff72360382 (diff)
Fix ModuleManager failing when:
- LWP::Simple is not installed. - Crypt::SSLeay or IO::Socket::SSL are not installed. This fixes #154.
Diffstat (limited to 'modulemanager')
-rwxr-xr-xmodulemanager14
1 files changed, 13 insertions, 1 deletions
diff --git a/modulemanager b/modulemanager
index ff2bd3056..d1212faf5 100755
--- a/modulemanager
+++ b/modulemanager
@@ -21,10 +21,22 @@
use strict;
use warnings FATAL => qw(all);
-use LWP::Simple;
use make::configure;
+
+if (!module_installed("LWP::Simple"))
+{
+ die "Your system is missing the LWP::Simple Perl module!";
+}
+
+if (!module_installed("Crypt::SSLeay") && !module_installed("IO::Socket::SSL"))
+{
+ die "Your system is missing the Crypt::SSLeay or IO::Socket::SSL Perl modules!";
+}
+
+use LWP::Simple;
+
our @modlist;
my %installed;