diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-12-18 00:34:53 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-12-18 00:40:55 +0100 |
commit | b238f10d9441afe1565cf698c54b69a58bbc4a45 (patch) | |
tree | cb7e63743100b398cd0ceeeb8ba87afc4c1e09b7 /README.md | |
parent | dfadb156aaf6759ab9d06de7dfa3261c82ea9910 (diff) | |
download | App-ArchLinux-PackagerTools-b238f10d9441afe1565cf698c54b69a58bbc4a45.tar.gz App-ArchLinux-PackagerTools-b238f10d9441afe1565cf698c54b69a58bbc4a45.tar.xz |
Fetch maintainers from archweb
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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. |