"Installed Software" shows package redundantly with application

Bug #537735 reported by Matthew Paul Thomas
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Ubuntu Software Center 1.1.17~reviews1
Ubuntu Software Center 2.1.19, Ubuntu Maverick

1. Install Brasero if it is not installed already. (Or adapt these instructions to another installed application.)
2. In "Installed Software", search for "brasero".
3. Click "Show _ technical items"

What happens:
* "Create and copy CDs and DVDs / brasero" shows up as one result.
* "Brasero / Create and copy CDs and DVDs" shows up as a separate result.

What should happen:
* "Brasero / Create and copy CDs and DVDs" shows up as the first result.
* "Create and copy CDs and DVDs / brasero" does not show up at all, because it's exactly the same package.

<https://wiki.ubuntu.com/SoftwareCenter#installed>: "The “Installed Software” section should provide access to all software items that are currently installed..."
<https://wiki.ubuntu.com/SoftwareCenter#def-software-item>: "If app-install-data or an archive index refer to one and only one application in a package, the package itself should not be treated as a software item, because it is represented by the application instead."

Changed in software-center (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :

I just tried that here and I can not reproduce it. I get:
...
Brasero
Python module for brasero
Common files for Brasero
buring plugin for rhythmbox
...

Changed in software-center (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Gary Lasker (gary-lasker) wrote :

@mvo, I'm seeing it, but only when doing the search in the Installed view.

Changed in software-center (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

A similar thing happens in the "Canonical Partners" section: "acroread" and "Adobe Reader 9" are shown as separate items, when they're really the same package. Is that the same bug, or should it be reported separately?

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

I think that's the same kind problem than bug 554180. Thats because you're querying 2 different database with nearly the same data. xapian return both records e.g
$ delve -d /var/lib/apt-xapian-index/index -d ./data/xapian/ -t 'brasero'
Posting List for term `brasero' (termfreq 5, collfreq 30): 2990 [Brasero] 14487 [brasero-common] 38457 [brasero] 41695 [python-brasero] 43553 [rhythmbox-plugin-cdrecorder]

The 1rst record (Brasero) is from ./data/xapian/ (s-c cache) and the 3rd (brasero) is from axi.

You should use a collapse key, for instance the package name or an md5 of the description and eliminate duplicate documents at search time based on that key. It would be even simpler and better to use only one index and do that at index time.

I've the feeling that this redundant db will cause some trouble in the future.

Changed in software-center (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Mohamed Amine Ilidrissi (ilidrissi.amine) wrote :

I can't reproduce this bug. Can you retry with trunk?

Changed in software-center (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Yep, the bug is still happening in 2.1.19.

description: updated
description: updated
Changed in software-center (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Matthew Paul Thomas (mpt) wrote :
Revision history for this message
Matthew Paul Thomas (mpt) wrote :
Revision history for this message
Kiwinote (kiwinote) wrote :

This should be fixed in the latest release (3.1.6).

Changed in software-center (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.