diff options
author | David Lawrence <dkl@mozilla.com> | 2015-04-08 18:36:10 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2015-04-08 18:36:10 +0200 |
commit | 426d9ce9a10c48a472c4937b5f652dc8c1b6486e (patch) | |
tree | f9ed08a5c74e7838ee1930a4c95db1f70ac0eec9 /Bugzilla/Constants.pm | |
parent | 3eb141e49b918a4c1d8fa837cfcb72ae1dfef108 (diff) | |
download | bugzilla-426d9ce9a10c48a472c4937b5f652dc8c1b6486e.tar.gz bugzilla-426d9ce9a10c48a472c4937b5f652dc8c1b6486e.tar.xz |
Bug 1152368 - BUGZILLA_VERSION in Bugzill::Constants causes error when installing Perl deps for new BMO installation
r=dylan
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r-- | Bugzilla/Constants.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index 5e4240853..61a33ae02 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -225,8 +225,9 @@ use Memoize; # BMO: we don't map exactly to a specific bugzilla version, so override our # reported version with a parameter. sub BUGZILLA_VERSION { - require Bugzilla; - return Bugzilla->params->{bugzilla_version} || '4.2+'; + my $bugzilla_version = '4.2+'; + eval { require Bugzilla } || return $bugzilla_version; + return Bugzilla->params->{bugzilla_version} || $bugzilla_version; } # A base link to the current REST Documentation. We place it here |