2
# DBInfo.pm: Database abstraction
3
# Copyright © 1998 Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de>
4
# Copyright © 2005 Ryan Murray <rmurray@debian.org>
5
# Copyright © 2005-2008 Roger Leigh <rleigh@debian.org>
7
# This program is free software: you can redistribute it and/or modify
8
# it under the terms of the GNU General Public License as published by
9
# the Free Software Foundation, either version 2 of the License, or
10
# (at your option) any later version.
12
# This program is distributed in the hope that it will be useful, but
13
# WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
# General Public License for more details.
17
# You should have received a copy of the GNU General Public License
18
# along with this program. If not, see
19
# <http://www.gnu.org/licenses/>.
21
#######################################################################
23
package Sbuild::DB::Info;
25
use Sbuild qw(debug isin);
36
@EXPORT = qw(category);
41
my %short_category = (
42
'u' => 'uploaded-fixed-pkg',
43
'f' => 'fix-expected',
44
'r' => 'reminder-sent',
49
'c' => 'compiler-error',
56
if (!isin($category, values %short_category)) {
57
$category = $short_category{$category}