diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-12-16 22:18:21 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-12-16 22:18:21 +0100 |
commit | add85e7636ac8a8972fdb43f1fc77e4c87680ec4 (patch) | |
tree | d6adde4a1452d3894b3c4371ba598a4f624d105b /README.md | |
parent | e7ec0e8f26d5700fd1b48911f4e4c91bb8eaa7bc (diff) | |
download | App-ArchLinux-PackagerTools-add85e7636ac8a8972fdb43f1fc77e4c87680ec4.tar.gz App-ArchLinux-PackagerTools-add85e7636ac8a8972fdb43f1fc77e4c87680ec4.tar.xz |
WIP get_maintainer
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -41,6 +41,21 @@ 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. +### get\_maintainer + + my $maintainer = $app->get_maintainer($pkgname); + +Accepts a package name and returns the maintainer of the package. + +### add\_maintainers + + my $packages = $app->get_updateable_packages($distribution_names); + my $packages_with_maintainer = $app->add_maintainers($packages); + print $packages_with_maintainer->[0]->{maintainer}; + +Accepts a list of packages (hashes with the pkgname key) and returns a list +with the maintainer key added to each package. + # LICENSE Copyright (C) 2018 Florian Pritz <bluewind@xinu.at> |