The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Parse::Fedora::Packages - Parse Fedora package information

SYNOPSIS

 use Parse::Fedora::Packages;
 my $p = Parse::Fedora::Packages->new;
 $p->parse_primary("primary.xml");

 my @all = $p->list_packages();

 print $all[0]->{name};
 print $all[0]->{version};
 print $all[0]->{summary};
 print $all[0]->{description};
 print $all[0]->{url};

METHODS

new

Constructor

  my $p = Parse::Fedora::Packages->new

parse_primary

Given a primary.xml file it will read it into memory and parse it.

Returns nothing.

Throws exception if the file is invalid xml.

   $p->parse_primary("primary.xml");

parse_primary_gz

Given a primary.xml.gz file it will read it into memory and parse it. If a URL is passed as argument, it will download it.

Returns nothing.

   $p->parse_primary_gz('primary.xml');

   # Or

   $p->parse_primary_gz('http://mirror.yandex.ru/fedora/tigro/non-free/11/i386/repodata/primary.xml.gz');

reported_count_packages

returns list of packages (sub xml)

count_packages

returns number of packages

WARNING

This is an alpha relese, The API will change.

TODO

Provide parse_primary_gz("primary.xml.gz");

AUTHORS

Gabor Szabo, <gabor@pti.co.il>

Currently maintained by rarbox, <rarbox@cpan.org>

COPYRIGHT

Copyright (C) 2007-2008 Gabor Szabo <gabor@pti.co.il>. All Rights Reserverd.

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

SEE ALSO

Parse::Debian::Packages, Module::Packaged, Module::Packaged::Report