Confusing title for Java package caused by _get_application_for_package

Bug #1418420 reported by Ori Avtalion
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Using version 0.196.12

Recently, a bunch of Java 6 packages needed to be updated on my machine:
icedtea-6-jre-cacao
icedtea-6-jre-jamvm
openjdk-6-jre
openjdk-6-jre-headless
openjdk-6-jre-lib
tzdata
tzdata-java

Update-Manager has decided that the name for the openjdk-6-jre package should be "OpenJDK Java 6 Policy Tool".
It then decided that openjdk-6-jre is the representative package of that group, so the entire update was under a drop-down named "OpenJDK Java 6 Policy Tool". (See screenshot)

Upon cursory inspection of the code, it seems like the function _get_application_for_package picks a representative name for a package based on the applications it provides. (Those that have a .desktop file)

This logic seems faulty. The "Java Policy Tool" is not a good description for that package, or for the group. It should use the description of openjdk-6-jre which is "OpenJDK Java runtime, using Hotspot JIT". Also, it's odd that the "Java Policy Tool" requires a 38MB update. That program is rarely used.

I don't have a suggestion on how to improve the algorithm itself to detect whether a desktop application provided by a package should be its description or not.

Tags: trusty vivid
Revision history for this message
Ori Avtalion (salty-horse) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

Confirmed with openjdk-7-jre on Vivid.

tags: added: trusty
tags: added: vivid
Changed in update-manager (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
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.