diff options
Diffstat (limited to 'gentoo-data.rb')
-rw-r--r-- | gentoo-data.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gentoo-data.rb b/gentoo-data.rb index f4e10d1..e1b8800 100644 --- a/gentoo-data.rb +++ b/gentoo-data.rb @@ -82,7 +82,10 @@ class GentooPlugin < Plugin output = f.readlines f.close m.reply "#{output}" - herds = output[0].gsub(/^.* Herd: ([^ ]+) .*$/, '\1').strip.split(/[, ]+/).map { |s| s.strip }.flatten + herds = [] + output[0].gsub!(/(Maintainer:|Description:).*/,'') + mre = /Herd: +([-[:alnum:], ]+) .*/.match(output[0]) + herds = mre[1].strip.split(/[, ]+/).map { |s| s.strip }.flatten if mre and mre[1] herds.each { |h| debug("meta -v calling herd for #{h}") p = params.clone |