NAME
PAR::Repository::ScanPAR - Scan a PAR distro for packages and scripts
SYNOPSIS
use PAR::Repository;
...
my $pkgs = $repository->scan_par_for_packages;
my $scripts = $repository->scan_par_for_scripts;
DESCRIPTION
This module is for internal use only. It contains code for scanning a PAR distribution for packages and scripts.
EXPORT
None.
METHODS
Following is a list of class and instance methods. (Instance methods until otherwise mentioned.)
There is no PAR::Repository::ScanPAR object. PAR::Repository inherits from this class.
scan_par_for_packages
First argument must be the path and file name of a PAR distribution. Scans that distribution for .pm files and scans those for packages and versions. Returns a hash of the package names as keys and hash refs as values. The hashes contain the path to the file in the PAR as the key "file" and (if found) the version of the package is the key "version".
Returns undef on error.
scan_par_for_scripts
First argument must be the path and file name of a PAR distribution. Scans that distribution for executable files and scans those for versions. Returns a hash of the script names as keys and hash refs as values. The hashes contain the path to the file in the PAR as the key "file" and (if found) the version of the script as the key "version".
Returns undef on error.
AUTHOR
Steffen Mueller, <smueller@cpan.org>
The original code for scanning modules was taken from the PAUSE soruces which were written by Andreas Koenig.
COPYRIGHT AND LICENSE
Copyright 2006-2008 by Steffen Mueller
Except for the code copied from the PAUSE scanner which is (C) Andreas Koenig.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.6 or, at your option, any later version of Perl 5 you may have available.