summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 9ba9828..03523a9 100644
--- a/README.md
+++ b/README.md
@@ -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.