Changeset 1892

Show
Ignore:
Timestamp:
01/23/07 12:31:32 (2 years ago)
Author:
athomas
Message:

RepoSearchPlugin:

update-index script fixed so it doesn't suck.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • reposearchplugin/branches/pyndexter/update-index

    r1881 r1892  
    77from pyndexter import Framework 
    88from trac.env import Environment 
    9 from tracreposearch import RepoSource 
     9from tracreposearch import RepoSource, TracRepoSearchPlugin 
    1010 
    1111e = Environment(sys.argv[1]) 
    12 f = Framework(e.config['repo-search'].get('indexer')) 
    13 repo = e.get_repository() 
    14 f.add_source(RepoSource(e, f, repo, include=['*.py'])) 
     12rs = TracRepoSearchPlugin(e) 
    1513 
    1614def logger(context, stream): 
     
    2018 
    2119 
    22 f.update(logger) 
    23 f.close() 
     20rs.framework.update(filter=logger) 
     21rs.framework.close()