aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2012-08-05 23:08:35 +0200
committerChristian Ruppert <idl0r@gentoo.org>2012-08-05 23:08:35 +0200
commit6c5796a5547c87cae7024706c2803b36d5b76ea0 (patch)
treef19f7cbcf41933e493e065217ae787538add5de8 /extensions/SecureMail/Config.pm
parentUpdate SecureMail (diff)
downloadbugzilla-6c5796a5547c87cae7024706c2803b36d5b76ea0.tar.gz
bugzilla-6c5796a5547c87cae7024706c2803b36d5b76ea0.tar.bz2
bugzilla-6c5796a5547c87cae7024706c2803b36d5b76ea0.zip
Update SecureMail
Diffstat (limited to 'extensions/SecureMail/Config.pm')
-rw-r--r--extensions/SecureMail/Config.pm44
1 files changed, 14 insertions, 30 deletions
diff --git a/extensions/SecureMail/Config.pm b/extensions/SecureMail/Config.pm
index df7d5d928..436b4753d 100644
--- a/extensions/SecureMail/Config.pm
+++ b/extensions/SecureMail/Config.pm
@@ -21,37 +21,21 @@
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,
- }
- );
- }
- return $modules;
-}
+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__->NAME;