Changeset 21683 for trunk


Ignore:
Timestamp:
Feb 2, 2007, 6:20:20 AM (13 years ago)
Author:
jberry@…
Message:

Add support for port search to mpbot. Disabled for now because it very easilly floods, which causes rbot to begin sucking cpu indefinately

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/portmgr/bots/port.rb

    r19705 r21683  
    4141                  when "version"
    4242                        return "version <portname> => show version of port <portname>"
     43                  when "search"
     44                        return "search <query> => show ports matching <query>"
    4345                  when "herald"
    4446                        return "herald enable|disable => enable or disable heralding by port"
     
    7375        def portversion(m, params)
    7476                doPort(m, "info", "--version", params[:portname])
     77        end
     78       
     79        def portsearch(m, params)
     80                doPort(m, "search", params[:query])
    7581        end
    7682       
     
    189195plugin.map 'port maintainer :portname', :action => 'portmaintainer'
    190196plugin.map 'port version :portname', :action => 'portversion'
     197#plugin.map 'port search :query', :action => 'portsearch'
    191198
    192199plugin.map 'port herald enable', :action => 'herald_enable'
Note: See TracChangeset for help on using the changeset viewer.