Merge lp://staging/~albertomilone/jockey/pkg-version into lp://staging/jockey

Proposed by Alberto Milone
Status: Needs review
Proposed branch: lp://staging/~albertomilone/jockey/pkg-version
Merge into: lp://staging/jockey
Diff against target: 93 lines (+18/-1)
5 files modified
jockey/backend.py (+1/-0)
jockey/handlers.py (+9/-0)
jockey/ui.py (+4/-1)
tests/backend.py (+2/-0)
tests/handlers.py (+2/-0)
To merge this branch: bzr merge lp://staging/~albertomilone/jockey/pkg-version
Reviewer Review Type Date Requested Status
Martin Pitt (community) Disapprove
Review via email: mp+23189@code.staging.launchpad.net

Description of the change

This branch adds initial support for retrieving the package version which, together with the code in pkg-version-ubuntu, allows us to fix LP: #543176

To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

Looks fine, please merge.

review: Approve
Revision history for this message
Martin Pitt (pitti) wrote :

Erm, wait a minute. A handler already has a "version" field. When I saw that patch, I thought we just forgot to export it, but we do. Why doesn't the nvidia driver just set this?

review: Needs Information
Revision history for this message
Martin Pitt (pitti) wrote :

Discussed on IRC. IMHO this will introduce duplicate structures into the core code which we won't ever get rid of again, and only for a corner case. Remember that you explicitly wanted to name the package "current", not "195"; so we should actually call it "current". Otherwise it'll create more confusion than it solves, since the package names in Jockey do not (always) reflect the package names in software-center etc.

If i18n is a concern, we have the ability to translate package descriptions, so maybe we should use that?

review: Disapprove
Revision history for this message
Alberto Milone (albertomilone) wrote :

A few things depend on the version field (in which we can find the driver flavour) already: the kernel module name, the package name and the recommended() method.

The package version doesn't necessarily match the driver flavour.

Unmerged revisions

627. By Alberto Milone

Add pkg_version() method which determines the value
of handler_info['pkg_version'].

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: