From e2364cbcfaa560ab2e3ae4f492c2bedc76dcbbec Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Mon, 3 Sep 2007 10:20:35 +0200 Subject: [PATCH] adding Algorithm::CheckDigits dependancy, for barcode printing Signed-off-by: Chris Cormack --- installer/install.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/installer/install.pl b/installer/install.pl index 623d0e04e9..e64a4c2e34 100755 --- a/installer/install.pl +++ b/installer/install.pl @@ -180,6 +180,11 @@ if ( $step && $step == 1 ) { push @missing, { name => "PDF::Report", usagebarcode => 1 }; } } + unless ( eval { require Net::LDAP } ) { + if ( $#missing >= 0 ) { # only when $#missing >= 0 so this isn't fatal + push @missing, { name => "Algorithm::CheckDigits", usagebarcode => 1 }; + } + } unless ( eval { require GD::Barcode::UPCE } ) { if ( $#missing >= 0 ) { # only when $#missing >= 0 so this isn't fatal push @missing, { name => "GD::Barcode::UPCE", usagepine => 1 }; @@ -190,7 +195,6 @@ if ( $step && $step == 1 ) { push @missing, { name => "Net::LDAP", usageLDAP => 1 }; } } - $template->param( missings => \@missing ) if ( scalar(@missing) > 0 ); $template->param( 'checkmodule' => 1 ) unless ( scalar(@missing) && $problem ); -- 2.39.5