~ubuntu-branches/ubuntu/raring/apt-xapian-index/raring-proposed

« back to all changes in this revision

Viewing changes to plugins/template.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2011-06-17 10:51:30 UTC
  • mfrom: (15.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110617105130-zrb03qthrg3l51mv
Tags: 0.43ubuntu1
* Merge from debian unstable.  Remaining changes:
  - when upgrading, ensure the index is fully rebuild (in the
    background) to ensure that we get updated information in
    /var/lib/apt-xapian-index/{index.values} and that the index
    fully utilizes the new plugins (LP: #646018)
  - use ionice for the index building
  - do not crash if the DB is already locked (LP: #590998)
  - data/org.debian.AptXapianIndex.conf: fix policy
  - move to dh_python2
  - update-apt-xapian-index-dbus:
    + fix type of "start-time" for policykit (LP: #675533)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
         values (optional)
13
13
           an array of dicts { name: name, desc: description }, one for every
14
14
           numeric value indexed by this data source.
 
15
         sources (optional)
 
16
           ad array of dicts { path: pathname, desc: description }, one for
 
17
           every data file accessed by this plugin. A directory can be provided
 
18
           as path, meaning "it accesses all sorts of files inside this
 
19
           directory": for example the APT index, or the app-install-data
 
20
           files. Use [] to mean "no sources".
15
21
 
16
22
        Note that this method can be called before init.  The idea is that, if
17
23
        the timestamp shows that this plugin is currently not needed, then the
18
24
        long initialisation can just be skipped.
19
25
        """
20
 
        return dict(timestamp = 0, values = [])
 
26
        return dict(timestamp = 0, values = [], sources=[])
21
27
 
22
28
    def init(self, info, progress):
23
29
        """