Thierry Vignaud > RPM4-0.31 > Hdlist::Header::Changelogs

Download:
RPM4-0.31.tar.gz

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source   Latest Release: RPM4-0.33

NAME ^

Hdlist::Header::Changelogs - A set of changelogs

SYNOPSIS ^

    use RPM4::Header;

    my $header RPM4::Header->new("foo.rpm");
    my $changelog = RPM4::Header::Changelog->new($header);
    $changelog->init; # not need here
    while ($changelog->hasnext) {
        print "* ", $changelog->name, "\n";
        print $changelog->text, "\n";
    }

METHODS ^

new(header)

Create a new changlelog set object from a rpm header.

init

Reset internal counter and prepare object for a first hasnext call.

hasnext

Increase internal counter, return false if last entry has been reached.

name

Return the CHANGELOGNAME tag of current changelog entry.

time

Return the CHANGELOGTIME tag of current changelog entry.

text

Return the CHANGELOGTEXT tag of current changelog entry.

SEE ALSO ^

RPM4::Header

Hdlist

syntax highlighting: