Fedora::Bugzilla::PackageReviewBug - bug + some reviewing magic
# set as default bug class $bz->default_bug_class('Fedora::Bugzilla::PackageReviewBug'); # get bugs as normal... my $bug = $bz->bug('perl-Moose'); # profit!
This is a small extension to Fedora::Bugzilla::Bug, providing a few review-bug-specific methods / attributes.
An object of this class represents a package review bug.
Returns true if the flags indicate we're ready to branch. The logic is pretty primitive right now; basically just check to see fedora-review == + and fedora-cvs isn't set (to anything).
True if both branched() and approved() are true. We should probably put some sort of "imported and built" check in here? Maybe?
Takes the summary and extracts the package name from it. Note we expect this to be filled out in the bug correctly, though we do try to be a little flexible here.
Review Request: perl-WWW-Curl - Perl extension...
The package description, also from the summary. From the above example, this would be "Perl extension...", where hopefully the "..." makes sense :-)
Basically just a shortcut to check for the existance of the fedora-review flag, and then to make sure it's set to '+'. True if this is the case, false otherwise.
If fedora-review is not set (+/-/?) on the bug, we check to see if we block either of the old-school blocker bugs: FE-ACCEPT and FC-ACCEPT. If we block either of those, then we're in an approved state.
True if we have fedora-cvs and it's '+'; false otherwise.
Chris Weyl <email@example.com>
Copyright (c) 2009 Chris Weyl <firstname.lastname@example.org>
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the
Free Software Foundation, Inc. 59 Temple Place, Suite 330 Boston, MA 02111-1307 USA