diff options
author | 2012-07-28 23:56:28 +0200 | |
---|---|---|
committer | 2012-07-28 23:56:28 +0200 | |
commit | 9cabe7e97d714bab668e7bcaecdb6868acc205d9 (patch) | |
tree | 21792b8a0e43796acce41abe010aa8f72690e29e /extensions/SecureMail/Config.pm | |
parent | Update InlineHistory (diff) | |
download | bugzilla-9cabe7e97d714bab668e7bcaecdb6868acc205d9.tar.gz bugzilla-9cabe7e97d714bab668e7bcaecdb6868acc205d9.tar.bz2 bugzilla-9cabe7e97d714bab668e7bcaecdb6868acc205d9.zip |
Update SecureMail
Diffstat (limited to 'extensions/SecureMail/Config.pm')
-rw-r--r-- | extensions/SecureMail/Config.pm | 44 |
1 files changed, 30 insertions, 14 deletions
diff --git a/extensions/SecureMail/Config.pm b/extensions/SecureMail/Config.pm index 436b4753d..df7d5d928 100644 --- a/extensions/SecureMail/Config.pm +++ b/extensions/SecureMail/Config.pm @@ -21,21 +21,37 @@ package Bugzilla::Extension::SecureMail; use strict; + +use Bugzilla::Constants; +use Bugzilla::Install::Util qw(vers_cmp); + use constant NAME => 'SecureMail'; -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, - }, -]; +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, + } + ); + } + return $modules; +} __PACKAGE__->NAME; |