summaryrefslogtreecommitdiffstats
path: root/extensions/SecureMail/Config.pm
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/SecureMail/Config.pm')
-rw-r--r--extensions/SecureMail/Config.pm46
1 files changed, 18 insertions, 28 deletions
diff --git a/extensions/SecureMail/Config.pm b/extensions/SecureMail/Config.pm
index df7d5d928..5b53ddf67 100644
--- a/extensions/SecureMail/Config.pm
+++ b/extensions/SecureMail/Config.pm
@@ -22,36 +22,26 @@
package Bugzilla::Extension::SecureMail;
use strict;
-use Bugzilla::Constants;
-use Bugzilla::Install::Util qw(vers_cmp);
-
use constant NAME => 'SecureMail';
-sub REQUIRED_MODULES {
- my $modules = [
- {
- package => 'Crypt-OpenPGP',
- module => 'Crypt::OpenPGP',
- # 1.02 added the ability for new() to take KeyRing objects for the
- # PubRing argument.
- version => '1.02',
- },
- {
- package => 'Crypt-SMIME',
- module => 'Crypt::SMIME',
- version => 0,
- },
- ];
- if (vers_cmp(BUGZILLA_VERSION, '4.2') > -1) {
- push(@$modules,
- {
- package => 'HTML-Tree',
- module => 'HTML::Tree',
- version => 0,
- }
- );
+use constant REQUIRED_MODULES => [
+ {
+ package => 'Crypt-OpenPGP',
+ module => 'Crypt::OpenPGP',
+ # 1.02 added the ability for new() to take KeyRing objects for the
+ # PubRing argument.
+ version => '1.02',
+ },
+ {
+ package => 'Crypt-SMIME',
+ module => 'Crypt::SMIME',
+ version => 0,
+ },
+ {
+ package => 'HTML-Tree',
+ module => 'HTML::Tree',
+ version => 0,
}
- return $modules;
-}
+];
__PACKAGE__->NAME;