summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Config
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-04-07 16:33:39 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-04-07 16:33:39 +0200
commit3bf3a21995642b04486f6145c22f3b00cd0c37f6 (patch)
tree60cda46097b3c3869ddf9fdf1f346c64238d7a91 /Bugzilla/Config
parentd93728fc725c07416d8e3a20e4c450719aa55cc5 (diff)
downloadbugzilla-3bf3a21995642b04486f6145c22f3b00cd0c37f6.tar.gz
bugzilla-3bf3a21995642b04486f6145c22f3b00cd0c37f6.tar.xz
Bug 557806: When setting the upgrade_notification parameter, an error should be thrown if you don't have all the required Perl modules installed
r=glob a=LpSolit
Diffstat (limited to 'Bugzilla/Config')
-rw-r--r--Bugzilla/Config/Common.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/Bugzilla/Config/Common.pm b/Bugzilla/Config/Common.pm
index 6924761f3..7416b1794 100644
--- a/Bugzilla/Config/Common.pm
+++ b/Bugzilla/Config/Common.pm
@@ -334,6 +334,10 @@ sub check_notification {
"about the next stable release, you should select " .
"'latest_stable_release' instead";
}
+ if ($option ne 'disabled' && !Bugzilla->feature('updates')) {
+ return "Some Perl modules are missing to get notifications about " .
+ "new releases. See the output of checksetup.pl for more information";
+ }
return "";
}
@@ -347,7 +351,8 @@ sub check_smtp_auth {
}
sub check_theschwartz_available {
- if (!eval { require TheSchwartz; require Daemon::Generic; }) {
+ my $use_queue = shift;
+ if ($use_queue && !Bugzilla->feature('jobqueue')) {
return "Using the job queue requires that you have certain Perl"
. " modules installed. See the output of checksetup.pl"
. " for more information";