aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gentoo-data.rb')
-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)