<<

NAME

Youri::Bugzilla - Youri Bugzilla interface

SYNOPSIS

    use Youri::Bugzilla;

    my $bugzilla = Youri::Bugzilla->new($host, $base, $user, $pass);

    print $bugzilla->get_maintainer('foobar');

DESCRIPTION

This module implement a database-level Bugzilla interface for managing packages.

The legacy Bugzilla database model is mapped this way:

CLASS METHODS

Except stated otherwise, maintainers are specified by their login, and packages are specified by their name.

new($host, $base, $user, $password)

Creates a new Youri::Bugzilla object, wrapping bugzilla database $base hosted on $host, and accessed by user $user with password $password.

INSTANCE METHODS

has_package($package)

Return true if bugzilla contains given package.

has_maintainer($maintainer)

Return true if bugzilla contains given maintainer.

get_maintainer($package)

Return maintainer of given package.

get_versions($package)

Return versions from given package.

get_components($package)

Return components from given package.

get_packages()

Return all packages from the database.

add_package($name, $summary, $version, $maintainer, $contact)

Adds a new package in the database, with given name, summary, version, maintainer and initial QA contact.

add_version($package, $version)

Adds a new version to given package.

add_maintainer($name, $login, $password)

Adds a new maintainer in the database, with given name, login and password.

del_package($package)

Delete given package from database.

del_maintainer($maintainer)

Delete given maintainer from database.

reset_password($maintainer, $password)

Reset password of a maintainer to given password.

browse_packages($callback)

Browse all packages from bugzilla, and execute given callback with name and maintainer as argument for each of them.

COPYRIGHT AND LICENSE

Copyright (C) 2002-2006, YOURI project

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

<<