diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -41,17 +41,17 @@ 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 +### get\_maintainers - my $maintainer = $app->get_maintainer($pkgname); + my $maintainers = $app->get_maintainers($pkgname); -Accepts a package name and returns the maintainer of the package. +Accepts a package name and returns the maintainers 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}; + print $packages_with_maintainer->[0]->{maintainers}->[0]->{name}; Accepts a list of packages (hashes with the pkgname key) and returns a list with the maintainer key added to each package. |