From 3b41062ecdd1389bed754f14309591da42fd642c Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 19 Nov 2018 00:15:57 +0100 Subject: Update autogenerated README Signed-off-by: Florian Pritz --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 78ac186..d6a3d93 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.2.3-24-g4f1b