Closed
Bug 1152368
Opened 10 years ago
Closed 10 years ago
BUGZILLA_VERSION in Bugzill::Constants causes error when installing Perl deps for new BMO installation
Categories
(bugzilla.mozilla.org :: General, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: dkl, Assigned: dkl)
References
Details
Attachments
(1 file, 1 obsolete file)
639 bytes,
patch
|
dylan
:
review+
|
Details | Diff | Splinter Review |
BUGZILLA_VERSION() calls 'require Bugzilla' which dies if an array of perl deps are not already installed. We need to wrap this in eval and fall back to the old constant value if error.
dkl
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8589697 -
Flags: review?(dylan)
Comment 2•10 years ago
|
||
Comment on attachment 8589697 [details] [diff] [review]
1152368_1.patch
Review of attachment 8589697 [details] [diff] [review]:
-----------------------------------------------------------------
r- string eval not needed.
::: Bugzilla/Constants.pm
@@ +225,5 @@
> # BMO: we don't map exactly to a specific bugzilla version, so override our
> # reported version with a parameter.
> sub BUGZILLA_VERSION {
> + my $bugzilla_version = '4.2+';
> + eval ("require Bugzilla") || return $bugzilla_version;
there is no reason to use a string eval here. eval { require Bugzilla } should be used.
Attachment #8589697 -
Flags: review?(dylan) → review-
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8589697 -
Attachment is obsolete: true
Attachment #8589708 -
Flags: review?(dylan)
Comment 4•10 years ago
|
||
Comment on attachment 8589708 [details] [diff] [review]
1152368_2.patch
Review of attachment 8589708 [details] [diff] [review]:
-----------------------------------------------------------------
r=dylan
Attachment #8589708 -
Flags: review?(dylan) → review+
Assignee | ||
Comment 5•10 years ago
|
||
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
3eb141e..426d9ce master -> master
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•