~mvo/software-center/lp1043752

« back to all changes in this revision

Viewing changes to softwarecenter/db/update.py

  • Committer: Michael Vogt
  • Date: 2012-07-02 09:47:45 UTC
  • mto: This revision was merged to the branch mainline in revision 3055.
  • Revision ID: michael.vogt@ubuntu.com-20120702094745-sebs3p6q3n6bmi7h
fix crash in missing import for index_name and add test for the software_center.py index plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
423
423
            LOG.debug("%r.index_app_info: returned invalid doc %r, ignoring.",
424
424
                      self.__class__.__name__, doc)
425
425
            return
426
 
        term_generator.set_document(doc)
427
426
        name = doc.get_data()
428
427
 
429
428
        if name in seen:
430
429
            LOG.debug("%r.index_app_info: duplicated name %r (%r)",
431
430
                      self.__class__.__name__, name, self.desktopf)
432
 
 
433
431
        LOG.debug("%r.index_app_info: indexing %r",
434
432
                  self.__class__.__name__, name)
435
433
        seen.add(name)
436
434
 
 
435
        term_generator.set_document(doc)
437
436
        term_generator.index_text_without_positions(name, WEIGHT_DESKTOP_NAME)
438
437
 
439
438
        pkgname = doc.get_value(XapianValues.PKGNAME)