diff options
author | 2011-11-17 19:55:46 +0000 | |
---|---|---|
committer | 2011-11-17 19:55:46 +0000 | |
commit | f7cf938b74e113e4e30c14aba5c1095bd0a06046 (patch) | |
tree | b4c448bfa8cc1ff9501f5bca3e0bb0da9b15486b | |
parent | Fix no-herd error (diff) | |
download | rbot-gentoo-f7cf938b74e113e4e30c14aba5c1095bd0a06046.tar.gz rbot-gentoo-f7cf938b74e113e4e30c14aba5c1095bd0a06046.tar.bz2 rbot-gentoo-f7cf938b74e113e4e30c14aba5c1095bd0a06046.zip |
This has been running already for bug #381415, but it doesn't quite work.
-rw-r--r-- | gentoo-data.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gentoo-data.rb b/gentoo-data.rb index f4e6608..f4e10d1 100644 --- a/gentoo-data.rb +++ b/gentoo-data.rb @@ -82,8 +82,13 @@ class GentooPlugin < Plugin output = f.readlines f.close m.reply "#{output}" - params[:herd] = output[0].gsub(/^.* Herd: ([^ ]+) .*$/, '\1').strip - herd(m, params) + herds = output[0].gsub(/^.* Herd: ([^ ]+) .*$/, '\1').strip.split(/[, ]+/).map { |s| s.strip }.flatten + herds.each { |h| + debug("meta -v calling herd for #{h}") + p = params.clone + p[:herd] = h + herd(m, p) + } end def changelog(m, params) |