~mvo/software-center/lp955005

« back to all changes in this revision

Viewing changes to softwarecenter/db/update.py

prototype side view

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
            elif pkgname in cache and cache[pkgname].candidate:
174
174
                s = cache[pkgname].candidate.summary
175
175
                doc.add_value(XAPIAN_VALUE_SUMMARY, s)
 
176
                for origin in ver.origins:
 
177
                    document.add_term("XOA"+origin.archive)
 
178
                    document.add_term("XOC"+origin.component)
 
179
                    document.add_term("XOL"+origin.label)
 
180
                    document.add_term("XOO"+origin.origin)
 
181
                    document.add_term("XOS"+origin.site)
176
182
 
177
183
            # add packagename as meta-data too
178
184
            term_generator.index_text_without_positions(pkgname, WEIGHT_APT_PKGNAME)