~ubuntu-branches/ubuntu/saucy/apt-xapian-index/saucy

« back to all changes in this revision

Viewing changes to plugins/debtags.py

  • Committer: Bazaar Package Importer
  • Author(s): Enrico Zini
  • Date: 2010-05-16 09:33:58 UTC
  • mfrom: (4.1.5 squeeze)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20100516093358-xvbshas89apqnvgj
Tags: 0.35
* Tolerate (and if --verbose, report) .desktop file with invalid popcon
  fields
* Added missing import. Closes: #581736
* Run update-python-modules -p before updating the index in postinst.
  Closes: #581811

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Add debtags tags to the index
2
2
 
3
3
import re, os, os.path
4
 
from debian import debtags
 
4
try:
 
5
    from debian import debtags
 
6
except ImportError:
 
7
    from debian_bundle import debtags
5
8
 
6
9
DEBTAGSDB = "/var/lib/debtags/package-tags"
7
10
 
105
108
        for tag in self.db.tags_of_package(pkg["Package"]):
106
109
            document.add_term("XT"+tag)
107
110
 
108
 
def init():
 
111
def init(**kw):
109
112
    """
110
113
    Create and return the plugin object.
111
114
    """