diff options
author | 2012-04-01 15:59:46 +0000 | |
---|---|---|
committer | 2012-04-01 15:59:46 +0000 | |
commit | 0b4dcf5e70f19b3b4713d6f14a35328fa1aebd31 (patch) | |
tree | 560f022836da73866f7149ce9a907c1c18ad58de | |
parent | Handle output that does not contain any herds. (diff) | |
download | rbot-gentoo-0b4dcf5e70f19b3b4713d6f14a35328fa1aebd31.tar.gz rbot-gentoo-0b4dcf5e70f19b3b4713d6f14a35328fa1aebd31.tar.bz2 rbot-gentoo-0b4dcf5e70f19b3b4713d6f14a35328fa1aebd31.zip |
Add PDEPEND support.
-rw-r--r-- | gentoo-data.rb | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gentoo-data.rb b/gentoo-data.rb index e1b8800..8749910 100644 --- a/gentoo-data.rb +++ b/gentoo-data.rb @@ -306,6 +306,10 @@ class GentooPlugin < Plugin depcommon(m, 'DEPEND', 'http://qa-reports.gentoo.org/output/genrdeps/dindex/', params) end + def pdep(m, params) + depcommon(m, 'PDEPEND', 'http://qa-reports.gentoo.org/output/genrdeps/pindex/', params) + end + def rdep(m, params) depcommon(m, 'RDEPEND', 'http://qa-reports.gentoo.org/output/genrdeps/rindex/', params) end @@ -327,7 +331,7 @@ class GentooPlugin < Plugin end @@help_gentoo = { - "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}", + "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}", "meta" => [ "meta #{Bold}[cat/]package#{Bold} : Print metadata for the given package", "meta -v #{Bold}[cat/]package#{Bold} : Print metadata for the given package and the members of the package herds.", @@ -343,6 +347,7 @@ class GentooPlugin < Plugin "earch" => "earch #{Bold}[cat/]package#{Bold} : Prints the versions and effective keywords for a given package.", "rdep" => "rdep #{Bold}[cat/]package#{Bold} : Prints the reverse RDEPENDs for a given package.", "ddep" => "ddep #{Bold}[cat/]package#{Bold} : Prints the reverse DEPENDS for a given package.", + "pdep" => "pdep #{Bold}[cat/]package#{Bold} : Prints the reverse PDEPENDs for a given package.", } @@ -454,6 +459,14 @@ plugin.map 'ddep :pkg', :thread => 'yes', :auth_path => 'view' +plugin.map 'pdep :pkg', + :requirements => { + :pkg => REGEX_CP, + }, + :action => 'pdep', + :thread => 'yes', + :auth_path => 'view' + plugin.map 'rdep :pkg', :requirements => { :pkg => REGEX_CP, |