Commit 3bf3a219 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 557806: When setting the upgrade_notification parameter, an error should be…

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
parent d93728fc
...@@ -334,6 +334,10 @@ sub check_notification { ...@@ -334,6 +334,10 @@ sub check_notification {
"about the next stable release, you should select " . "about the next stable release, you should select " .
"'latest_stable_release' instead"; "'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 ""; return "";
} }
...@@ -347,7 +351,8 @@ sub check_smtp_auth { ...@@ -347,7 +351,8 @@ sub check_smtp_auth {
} }
sub check_theschwartz_available { 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" return "Using the job queue requires that you have certain Perl"
. " modules installed. See the output of checksetup.pl" . " modules installed. See the output of checksetup.pl"
. " for more information"; . " for more information";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment