From 426d9ce9a10c48a472c4937b5f652dc8c1b6486e Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Wed, 8 Apr 2015 12:36:10 -0400 Subject: Bug 1152368 - BUGZILLA_VERSION in Bugzill::Constants causes error when installing Perl deps for new BMO installation r=dylan --- Bugzilla/Constants.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Bugzilla') 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 -- cgit v1.2.3-24-g4f1b