#!/usr/bin/perl -Tw # $FreeBSD$ sub get_categories { @categories = (); open(Q, 'query-pr.web --list-categories 2>/dev/null |') || die "Cannot get categories\n"; while() { chop; local ($cat, $desc, $responsible, $notify) = split(/:/); push(@categories, $cat); $catdesc{$cat} = $desc; } } sub get_states { @states = (); open(Q, 'query-pr.web --list-states 2>/dev/null |') || die "Cannot get states\n"; while() { chop; local ($state, $type, $desc) = split(/:/); push(@states, $state); $statedesc{$state} = $desc; } } sub get_classes { @classes = (); open(Q, 'query-pr.web --list-classes 2>/dev/null |') || die "Cannot get classes\n"; while() { chop; local ($class, $type, $desc) = split(/:/); push(@classes, $class); $classdesc{$class} = $desc; } } sub displayform { print qq`

To query the GNATS Database for specific PR number, please fill in this form:

PR number:
Category: (optional)

Alternatively, it is possible to select items you wish to search for. Multiple items are AND'ed together.
To generate current list of all open PRs in GNATS database, just press the "Query PRs" button.

Category: Severity:
Priority: Class:
State: Sort by:
Text in single-line fields: Responsible:
Text in multi-line fields: Originator:
Closed reports too: Release:
`; } 1;