aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/files
Commit message (Expand)AuthorAgeFilesLines
* Only prevent submitting if the package is already in same queuePascal Terjan2018-06-051-0/+1
* Fix Mageia.pmPascal Terjan2016-12-061-0/+2
* Delete broken unwanted codePascal Terjan2016-12-051-21/+0
* Kill get_revisions, the one in the base class is betterPascal Terjan2016-12-051-29/+0
* Youri::Repository::Mageia: Use new get_target_arches() method in _get_distrib...Olivier Blin2015-11-021-1/+1
* lint fixes for buildsystemThomas Backlund2015-10-201-1/+1
* buildsystem/Mageia.pm: remove warningNicolas Vigier2013-05-231-1/+1
* buildsystem::signbot: move files from templates to files directoryNicolas Vigier2012-12-113-0/+71
* use common media.cfg template file for all distros and archsNicolas Vigier2012-08-302-703/+0
* switch Cauldron medias back to Devel statusThomas Backlund2012-05-272-4/+4
* prepare for upcoming version 2 and Official releaseThomas Backlund2012-05-192-4/+4
* drop missing-depsPascal Terjan2012-03-061-26/+0
* use temporary files to update missing-deps files (#2839)Nicolas Vigier2012-01-031-1/+2
* fix bug 617 and follow mirror policyMichael Scherer2011-06-072-0/+4
* remove hdlistsNicolas Vigier2011-05-042-100/+0
* remove rpmsrate as it comes from meta-task packageNicolas Vigier2011-05-041-811/+0
* add rpmsrate fileNicolas Vigier2011-05-041-0/+811
* move hdlists and media.cfg files to buildsystem moduleNicolas Vigier2011-05-042-0/+365
* move hdlists and media.cfg files to buildsystem moduleNicolas Vigier2011-05-042-0/+434
* use mga-youri-submit (and rename files accordingly)Olivier Blin2011-04-041-1/+1
* Add back get_distribution_roots, used by UnpackPascal Terjan2011-03-281-0/+16
* Revert, is_debug needs to be fixed it is used in various placesPascal Terjan2011-03-241-1/+1
* is_debug gives yes on src packages named *-debugPascal Terjan2011-03-241-1/+1
* Stop using mdv-youri-corePascal Terjan2011-03-241-0/+540
* add script made by pascal to check packages that have missing deps ( temporar...Michael Scherer2011-01-201-0/+25
) || ''); my $key_id = $cgi->param('id'); my $token = $cgi->param('token'); $vars->{'action'} = $action; if ($action eq "") { $vars->{'keywords'} = Bugzilla::Keyword->get_all_with_bug_count(); print $cgi->header(); $template->process("admin/keywords/list.html.tmpl", $vars) || ThrowTemplateError($template->error()); exit; } if ($action eq 'add') { $vars->{'token'} = issue_session_token('add_keyword'); print $cgi->header(); $template->process("admin/keywords/create.html.tmpl", $vars) || ThrowTemplateError($template->error()); exit; } # # action='new' -> add keyword entered in the 'action=add' screen # if ($action eq 'new') { check_token_data($token, 'add_keyword'); my $name = $cgi->param('name') || ''; my $desc = $cgi->param('description') || ''; my $keyword = Bugzilla::Keyword->create( { name => $name, description => $desc }); delete_token($token); print $cgi->header(); $vars->{'name'} = $keyword->name; $template->process("admin/keywords/created.html.tmpl", $vars) || ThrowTemplateError($template->error()); exit; } # # action='edit' -> present the edit keywords from # # (next action would be 'update') # if ($action eq 'edit') { my $keyword = new Bugzilla::Keyword($key_id) || ThrowCodeError('invalid_keyword_id', { id => $key_id }); $vars->{'keyword'} = $keyword; $vars->{'token'} = issue_session_token('edit_keyword'); print $cgi->header(); $template->process("admin/keywords/edit.html.tmpl", $vars) || ThrowTemplateError($template->error()); exit; } # # action='update' -> update the keyword # if ($action eq 'update') { check_token_data($token, 'edit_keyword'); my $keyword = new Bugzilla::Keyword($key_id) || ThrowCodeError('invalid_keyword_id', { id => $key_id }); $keyword->set_name($cgi->param('name')); $keyword->set_description($cgi->param('description')); $keyword->update(); delete_token($token); print $cgi->header(); $vars->{'keyword'} = $keyword; $template->process("admin/keywords/rebuild-cache.html.tmpl", $vars) || ThrowTemplateError($template->error()); exit; } if ($action eq 'delete') { my $keyword = new Bugzilla::Keyword($key_id) || ThrowCodeError('invalid_keyword_id', { id => $key_id }); $vars->{'keyword'} = $keyword; # We need this token even if there is no bug using this keyword. $token = issue_session_token('delete_keyword'); if (!$cgi->param('reallydelete') && $keyword->bug_count) { $vars->{'token'} = $token; print $cgi->header(); $template->process("admin/keywords/confirm-delete.html.tmpl", $vars) || ThrowTemplateError($template->error()); exit; } # We cannot do this check earlier as we have to check 'reallydelete' first. check_token_data($token, 'delete_keyword'); $dbh->do('DELETE FROM keywords WHERE keywordid = ?', undef, $keyword->id); $dbh->do('DELETE FROM keyworddefs WHERE id = ?', undef, $keyword->id); delete_token($token); print $cgi->header(); $template->process("admin/keywords/rebuild-cache.html.tmpl", $vars) || ThrowTemplateError($template->error()); exit; } ThrowCodeError("action_unrecognized", $vars);