1 |
commit: f7cf938b74e113e4e30c14aba5c1095bd0a06046 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 17 19:55:46 2011 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 17 19:55:46 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/rbot-gentoo.git;a=commit;h=f7cf938b |
7 |
|
8 |
This has been running already for bug #381415, but it doesn't quite work. |
9 |
|
10 |
--- |
11 |
gentoo-data.rb | 9 +++++++-- |
12 |
1 files changed, 7 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/gentoo-data.rb b/gentoo-data.rb |
15 |
index f4e6608..f4e10d1 100644 |
16 |
--- a/gentoo-data.rb |
17 |
+++ b/gentoo-data.rb |
18 |
@@ -82,8 +82,13 @@ class GentooPlugin < Plugin |
19 |
output = f.readlines |
20 |
f.close |
21 |
m.reply "#{output}" |
22 |
- params[:herd] = output[0].gsub(/^.* Herd: ([^ ]+) .*$/, '\1').strip |
23 |
- herd(m, params) |
24 |
+ herds = output[0].gsub(/^.* Herd: ([^ ]+) .*$/, '\1').strip.split(/[, ]+/).map { |s| s.strip }.flatten |
25 |
+ herds.each { |h| |
26 |
+ debug("meta -v calling herd for #{h}") |
27 |
+ p = params.clone |
28 |
+ p[:herd] = h |
29 |
+ herd(m, p) |
30 |
+ } |
31 |
end |
32 |
|
33 |
def changelog(m, params) |