~mmcg069/software-center/bug855666

« back to all changes in this revision

Viewing changes to softwarecenter/db/update.py

merged (and fixed conflicts) from  lp:~gary-lasker/software-center/sourcesview  

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 cache[pkgname].candidate.origins:
 
177
                    doc.add_term("XOA"+origin.archive)
 
178
                    doc.add_term("XOC"+origin.component)
 
179
                    doc.add_term("XOL"+origin.label)
 
180
                    doc.add_term("XOO"+origin.origin)
 
181
                    doc.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)