From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

Slackware::Slackget::SpecialFileContainer - A class to class, sort and compil the PACKAGES.TXT, CHECKSUMS.md5 and FILELIST.TXT

VERSION

Version 1.0.0

SYNOPSIS

This class is a front-end for the 3 sub-class Slackware::Slackget::SpecialFiles::PACKAGES , Slackware::Slackget::SpecialFiles::CHECKSUMS and Slackware::Slackget::SpecialFiles::FILELIST.

Act as a container but also make a treatment (the compilation of the 3 subclasses in one sol object)

CONSTRUCTOR

new

take the following arguments :

a unique id
FILELIST => the FILELIST.TXT filename
PACKAGES => the PACKAGES.TXT filename
CHECKSUMS => the CHECKSUMS.md5 filename
config => a Slackware::Slackget::Config object.
my $container = Slackware::Slackget::SpecialFileContainer->new(
'slackware',
config => $config,
FILELIST => /home/packages/update_files/FILELIST.TXT,
PACKAGES => /home/packages/update_files/PACKAGES.TXT,
CHECKSUMS => /home/packages/update_files/CHECKSUMS.md5
);

FUNCTIONS

compile

Mainly call the compile() method of the special files.

$container->compile();

id

Return the id of the SpecialFileContainer object id (like: 'slackware', 'linuxpackages', etc.)

my $id = $container->id ;

to_XML (deprecated)

Same as to_xml(), provided for backward compatibility.

to_xml

return a string XML encoded which represent the compilation of PACKAGES, FILELIST, CHECKSUMS constructor parameters.

my $string = $container->to_xml();

AUTHOR

DUPUIS Arnaud, <a.dupuis@infinityperl.org>

BUGS

Please report any bugs or feature requests to bug-Slackware-Slackget@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Slackware-Slackget. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Slackware::Slackget::SpecialFileContainer

You can also look for information at:

ACKNOWLEDGEMENTS

Thanks to Bertrand Dupuis (yes my brother) for his contribution to the documentation.

COPYRIGHT & LICENSE

Copyright 2005 DUPUIS Arnaud, All Rights Reserved.

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