From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RzIEp-0007rA-J1 for garchives@archives.gentoo.org; Mon, 20 Feb 2012 01:40:27 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C96E6E0C16; Mon, 20 Feb 2012 01:40:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 97694E0C16 for ; Mon, 20 Feb 2012 01:40:15 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 083FF1B4011 for ; Mon, 20 Feb 2012 01:40:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 58E9BE5407 for ; Mon, 20 Feb 2012 01:40:12 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1329702002.b8d876fc8e8ce96edef842257998d0570566205e.robbat2@gentoo> Subject: [gentoo-commits] proj/rbot-gentoo:master commit in: / X-VCS-Repository: proj/rbot-gentoo X-VCS-Files: gentoo-data.rb X-VCS-Directories: / X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: b8d876fc8e8ce96edef842257998d0570566205e X-VCS-Branch: master Date: Mon, 20 Feb 2012 01:40:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: e58ee848-be4a-446e-94d6-5be8c39afe5f X-Archives-Hash: 877d854e91ced9ace4c77e8009b242d2 commit: b8d876fc8e8ce96edef842257998d0570566205e Author: Robin H. Johnson gentoo org> AuthorDate: Mon Feb 20 01:40:02 2012 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Mon Feb 20 01:40:02 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/rbot-gentoo.g= it;a=3Dcommit;h=3Db8d876fc 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 =3D f.readlines f.close m.reply "#{output}" - herds =3D output[0].gsub(/^.* Herd: ([^ ]+) .*$/, '\1').strip.split(= /[, ]+/).map { |s| s.strip }.flatten + herds =3D [] + output[0].gsub!(/(Maintainer:|Description:).*/,'') + mre =3D /Herd: +([-[:alnum:], ]+) .*/.match(output[0]) + herds =3D 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 =3D params.clone