slackget10::PkgTools - A wrapper for the pkgtools action(installpkg, upgradepkg and removepkg)
Version 1.0.0
This class is anoter wrapper for slack-get. It will encapsulate the pkgtools system call.
use slackget10::PkgTools; my $pkgtool = slackget10::PkgTools->new($config); $pkgtool->install($package1); $pkgtool->remove($package_list); foreach (@{$packagelist->get_all}) { print "Status for ",$_->name," : ",$_->status()->to_string,"\n"; } $pkgtool->upgrade($package_list);
Take a slackget10::Config object as argument :
my $pkgtool = new slackget10::PkgTool ($config);
Take a single slackget10::Package object or a single slackget10::PackageList as argument and call installpkg on all this packages. Return 1 or undef if an error occured. But methods from the slackget10::PkgTools class don't return on the first error, it will try to install all packages. Additionnally, for each package installed, set a status.
$pkgtool->install($package_list);
Take a single slackget10::Package object or a single slackget10::PackageList as argument and call upgradepkg on all this packages. Return 1 or undef if an error occured. But methods from the slackget10::PkgTools class don't return on the first error, it will try to install all packages. Additionnally, for each package installed, set a status.
$pkgtool->install($package_list) ;
DUPUIS Arnaud, <a.dupuis@infinityperl.org>
<a.dupuis@infinityperl.org>
Please report any bugs or feature requests to bug-slackget10-networking@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=slackget10. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-slackget10-networking@rt.cpan.org
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.
To install slackget10, copy and paste the appropriate command in to your terminal.
cpanm
cpanm slackget10
CPAN shell
perl -MCPAN -e shell install slackget10
For more information on module installation, please visit the detailed CPAN module installation guide.