Comment 19 for bug 891613

Revision history for this message
Michael Vogt (mvo) wrote :

This seems to be a side effect of the exact query we do for pkgname matches. When we do this for items in the apt-xapian-database, we add a:

"""
            # filter out docs of pkgs of which there exists a doc of the app
            enquire.set_query(xapian.Query(xapian.Query.OP_AND_NOT,
                                           q, xapian.Query("XD")))
"""

The apt-xapian-index adds a "XD" to all the documents that have a desktop file in app-install-data. This makes the de-duplication
for items in app-install-data-ubuntu working fine, but it does not work for data comming from the software-center-agent
as this does not have a desktop file on disk.