aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-01-26 16:35:17 +0100
committerMichał Górny <mgorny@gentoo.org>2016-01-26 16:45:11 +0100
commit560a65046a8d83fed0e87f577efe5247b5da233f (patch)
treed9bfb24a13cca533e91dd1093f5f5a15d6eae58c /gentoo-data.rb
parenthelp: Add proj to command list (diff)
downloadrbot-gentoo-560a65046a8d83fed0e87f577efe5247b5da233f.tar.gz
rbot-gentoo-560a65046a8d83fed0e87f577efe5247b5da233f.tar.bz2
rbot-gentoo-560a65046a8d83fed0e87f577efe5247b5da233f.zip
!meta -v: Support project expansion
Diffstat (limited to 'gentoo-data.rb')
-rw-r--r--gentoo-data.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/gentoo-data.rb b/gentoo-data.rb
index 49c1211..512422f 100644
--- a/gentoo-data.rb
+++ b/gentoo-data.rb
@@ -116,6 +116,13 @@ class GentooPlugin < Plugin
return if pkg.nil?
meta_print(m, pkg)
+ pkg['maintainers'].each { |maint|
+ return if maint['type'] != 'project'
+ debug("meta -v calling proj for #{maint['email']}")
+ p = params.clone
+ p[:project] = maint['email']
+ project(m, p)
+ }
pkg['herds'].each { |h|
debug("meta -v calling herd for #{h}")
p = params.clone
@@ -424,7 +431,7 @@ class GentooPlugin < Plugin
"gentoo" => "Available commands: #{Bold}meta#{Bold}, #{Bold}changelog#{Bold}, #{Bold}devaway#{Bold}, #{Bold}herd#{Bold}, #{Bold}proj#{Bold}, #{Bold}expn#{Bold}, #{Bold}glsa#{Bold}, #{Bold}earch#{Bold}, #{Bold}rdep#{Bold}, #{Bold}ddep#{Bold}, #{Bold}pdep#{Bold}",
"meta" => [
"meta #{Bold}[cat/]package#{Bold} : Print metadata for the given package",
- "meta -v #{Bold}[cat/]package#{Bold} : Print metadata for the given package and the members of the package herds.",
+ "meta -v #{Bold}[cat/]package#{Bold} : Print metadata for the given package and the members of the maintaining projects.",
].join("\n"),
"changelog" => "changelog #{Bold}[cat/]package#{Bold} : Produce changelog statistics for a given package",
"devaway" => "devaway #{Bold}devname|list#{Bold} : Print the .away for a developer (if any). Using 'list' shows the developers who are away.",