summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-11-19 00:15:57 +0100
committerFlorian Pritz <bluewind@xinu.at>2018-11-19 00:15:57 +0100
commit3b41062ecdd1389bed754f14309591da42fd642c (patch)
treedbff31f0d9ab2e5be79e974345e8ab5d5de03d28
parent12201461e927af015caefc583a2ab5514c63668b (diff)
downloadApp-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.md21
1 files changed, 21 insertions, 0 deletions
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 <bluewind@xinu.at>