aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2011-11-17 19:55:46 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2011-11-17 19:55:46 +0000
commitf7cf938b74e113e4e30c14aba5c1095bd0a06046 (patch)
treeb4c448bfa8cc1ff9501f5bca3e0bb0da9b15486b
parentFix no-herd error (diff)
downloadrbot-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.rb9
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)