public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/rbot-gentoo:master commit in: /
Date: Mon, 20 Feb 2012 01:40:12 +0000 (UTC)	[thread overview]
Message-ID: <1329702002.b8d876fc8e8ce96edef842257998d0570566205e.robbat2@gentoo> (raw)

commit:     b8d876fc8e8ce96edef842257998d0570566205e
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 20 01:40:02 2012 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Feb 20 01:40:02 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/rbot-gentoo.git;a=commit;h=b8d876fc

Handle output that does not contain any herds.

---
 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



             reply	other threads:[~2012-02-20  1:40 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-20  1:40 Robin H. Johnson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-11-22  4:25 [gentoo-commits] proj/rbot-gentoo:master commit in: / Robin H. Johnson
2016-11-22  4:25 Robin H. Johnson
2016-11-22  4:17 Robin H. Johnson
2016-11-22  4:11 Robin H. Johnson
2016-08-13 18:24 Michał Górny
2016-06-15  3:13 Robin H. Johnson
2016-05-31 15:01 Robin H. Johnson
2016-01-27 18:21 Michał Górny
2016-01-27 18:21 Michał Górny
2016-01-27 18:21 Michał Górny
2016-01-27 18:21 Michał Górny
2016-01-27 18:21 Michał Górny
2016-01-27 18:21 Michał Górny
2016-01-12 19:09 Michał Górny
2016-01-12 19:09 Michał Górny
2016-01-12 19:09 Michał Górny
2016-01-11 16:25 Robin H. Johnson
2012-04-01 15:59 Robin H. Johnson
2011-11-17 19:55 Robin H. Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1329702002.b8d876fc8e8ce96edef842257998d0570566205e.robbat2@gentoo \
    --to=robbat2@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox