Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/rbot-gentoo:master commit in: /
Date: Sun, 01 Apr 2012 16:00:11
Message-Id: 1333295986.0b4dcf5e70f19b3b4713d6f14a35328fa1aebd31.robbat2@gentoo
1 commit: 0b4dcf5e70f19b3b4713d6f14a35328fa1aebd31
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 1 15:59:46 2012 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 1 15:59:46 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/rbot-gentoo.git;a=commit;h=0b4dcf5e
7
8 Add PDEPEND support.
9
10 ---
11 gentoo-data.rb | 15 ++++++++++++++-
12 1 files changed, 14 insertions(+), 1 deletions(-)
13
14 diff --git a/gentoo-data.rb b/gentoo-data.rb
15 index e1b8800..8749910 100644
16 --- a/gentoo-data.rb
17 +++ b/gentoo-data.rb
18 @@ -306,6 +306,10 @@ class GentooPlugin < Plugin
19 depcommon(m, 'DEPEND', 'http://qa-reports.gentoo.org/output/genrdeps/dindex/', params)
20 end
21
22 + def pdep(m, params)
23 + depcommon(m, 'PDEPEND', 'http://qa-reports.gentoo.org/output/genrdeps/pindex/', params)
24 + end
25 +
26 def rdep(m, params)
27 depcommon(m, 'RDEPEND', 'http://qa-reports.gentoo.org/output/genrdeps/rindex/', params)
28 end
29 @@ -327,7 +331,7 @@ class GentooPlugin < Plugin
30 end
31
32 @@help_gentoo = {
33 - "gentoo" => "Available commands: #{Bold}meta#{Bold}, #{Bold}changelog#{Bold}, #{Bold}devaway#{Bold}, #{Bold}herd#{Bold}, #{Bold}expn#{Bold}, #{Bold}glsa#{Bold}, #{Bold}earch#{Bold}, #{Bold}rdep#{Bold}, #{Bold}ddep#{Bold}",
34 + "gentoo" => "Available commands: #{Bold}meta#{Bold}, #{Bold}changelog#{Bold}, #{Bold}devaway#{Bold}, #{Bold}herd#{Bold}, #{Bold}expn#{Bold}, #{Bold}glsa#{Bold}, #{Bold}earch#{Bold}, #{Bold}rdep#{Bold}, #{Bold}ddep#{Bold}, #{Bold}pdep#{Bold}",
35 "meta" => [
36 "meta #{Bold}[cat/]package#{Bold} : Print metadata for the given package",
37 "meta -v #{Bold}[cat/]package#{Bold} : Print metadata for the given package and the members of the package herds.",
38 @@ -343,6 +347,7 @@ class GentooPlugin < Plugin
39 "earch" => "earch #{Bold}[cat/]package#{Bold} : Prints the versions and effective keywords for a given package.",
40 "rdep" => "rdep #{Bold}[cat/]package#{Bold} : Prints the reverse RDEPENDs for a given package.",
41 "ddep" => "ddep #{Bold}[cat/]package#{Bold} : Prints the reverse DEPENDS for a given package.",
42 + "pdep" => "pdep #{Bold}[cat/]package#{Bold} : Prints the reverse PDEPENDs for a given package.",
43 }
44
45
46 @@ -454,6 +459,14 @@ plugin.map 'ddep :pkg',
47 :thread => 'yes',
48 :auth_path => 'view'
49
50 +plugin.map 'pdep :pkg',
51 + :requirements => {
52 + :pkg => REGEX_CP,
53 + },
54 + :action => 'pdep',
55 + :thread => 'yes',
56 + :auth_path => 'view'
57 +
58 plugin.map 'rdep :pkg',
59 :requirements => {
60 :pkg => REGEX_CP,