diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-11-19 00:15:57 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-11-19 00:15:57 +0100 |
commit | 3b41062ecdd1389bed754f14309591da42fd642c (patch) | |
tree | dbff31f0d9ab2e5be79e974345e8ab5d5de03d28 | |
parent | 12201461e927af015caefc583a2ab5514c63668b (diff) | |
download | App-ArchLinux-PackagerTools-3b41062ecdd1389bed754f14309591da42fd642c.tar.gz App-ArchLinux-PackagerTools-3b41062ecdd1389bed754f14309591da42fd642c.tar.xz |
Update autogenerated README
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | README.md | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -20,6 +20,27 @@ App::ArchLinux::PackagerTools is ... Returns a new instance. +### get\_distributions\_in\_repo + + my $dists = $app->get_distributions_in_repo(); + +Return an arrayref of hashrefs with CPAN distribution information. See +["get\_perl\_distributions" in App::ArchLinux::PackagerTools::Pacman](https://metacpan.org/pod/App::ArchLinux::PackagerTools::Pacman#get_perl_distributions). + +### get\_updateable\_packages + + my $distribution_names = ['App::ArchLinux::PackagerTools', 'DBI']; + my $packages = $app->get_updateable_packages($distribution_names); + print $packages[0]->{dist_name}; + print $packages[0]->{pkgname}; + print $packages[0]->{repo_version}; + print $packages[0]->{cpan_version}; + +Accepts a list of package names and returns a list of packages that can be +updated. The returned packages contain the name of the distribution, the name +of the pacman package, and the versions of each, the pacman package (which is +older) and the CPAN distribution. + # LICENSE Copyright (C) 2018 Florian Pritz <bluewind@xinu.at> |