diff options
author | Dylan Hardison <dylan@mozilla.com> | 2016-06-03 22:51:40 +0200 |
---|---|---|
committer | Dylan Hardison <dylan@mozilla.com> | 2016-06-03 22:52:00 +0200 |
commit | 13161f4ec66ae6174b553ece906bec31b5b5cff9 (patch) | |
tree | 81eefc9e0fe258a4a327c8d546989231116964ff /sanitycheck.cgi | |
parent | 20bc492eae38c0374ec65568a9c72e9df1318ef1 (diff) | |
download | bugzilla-13161f4ec66ae6174b553ece906bec31b5b5cff9.tar.gz bugzilla-13161f4ec66ae6174b553ece906bec31b5b5cff9.tar.xz |
Bug 1277863 - Add crash signature field for "External Software Affecting Firefox" product
Diffstat (limited to 'sanitycheck.cgi')
-rwxr-xr-x | sanitycheck.cgi | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sanitycheck.cgi b/sanitycheck.cgi index f718312f4..5acf79f06 100755 --- a/sanitycheck.cgi +++ b/sanitycheck.cgi @@ -72,6 +72,7 @@ my $user = Bugzilla->login(LOGIN_REQUIRED); my $cgi = Bugzilla->cgi; my $dbh = Bugzilla->dbh; +my $hooks_only = $cgi->param('hooks_only'); # If the result of the sanity check is sent per email, then we have to # take the user prefs into account rather than querying the web browser. my $template; @@ -84,7 +85,7 @@ else { # Only check the token if we are running this script from the # web browser and a parameter is passed to the script. # XXX - Maybe these two parameters should be deleted once logged in? - $cgi->delete('GoAheadAndLogIn', 'Bugzilla_restrictlogin'); + $cgi->delete('GoAheadAndLogIn', 'Bugzilla_restrictlogin', 'hooks_only'); if (scalar($cgi->param())) { my $token = $cgi->param('token'); check_hash_token($token, ['sanitycheck']); @@ -108,6 +109,8 @@ unless (Bugzilla->usage_mode == USAGE_MODE_CMDLINE) { || ThrowTemplateError($template->error()); } +goto REPAIR_HOOKS if $hooks_only; + ########################################################################### # Create missing group_control_map entries ########################################################################### @@ -379,8 +382,11 @@ Bugzilla->memcached->clear_all() if $clear_memcached; # Repair hook ########################################################################### +REPAIR_HOOKS: + Bugzilla::Hook::process('sanitycheck_repair', { status => \&Status }); +goto CHECK_HOOKS if $hooks_only; ########################################################################### # Checks ########################################################################### @@ -924,7 +930,7 @@ Status('whines_obsolete_target_fix') if $display_repair_whines_link; ########################################################################### # Check hook ########################################################################### - +CHECK_HOOKS: Bugzilla::Hook::process('sanitycheck_check', { status => \&Status }); ########################################################################### |