Merge lp:~ted/ubuntu/raring/ubuntu-drivers-common/nvidia-experimental-number into lp:ubuntu/raring/ubuntu-drivers-common

Proposed by Ted Gould
Status: Rejected
Rejected by: Martin Pitt
Proposed branch: lp:~ted/ubuntu/raring/ubuntu-drivers-common/nvidia-experimental-number
Merge into: lp:ubuntu/raring/ubuntu-drivers-common
Diff against target: 12 lines (+1/-1)
1 file modified
NvidiaDetector/nvidiadetector.py (+1/-1)
To merge this branch: bzr merge lp:~ted/ubuntu/raring/ubuntu-drivers-common/nvidia-experimental-number
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+137754@code.launchpad.net

Description of the change

#1 issue on errors.ubuntu.com, would be good to see this get in. Basically we're just parsing the package name incorrectly for the new packages that have started appearing.

To post a comment you must log in.
Revision history for this message
Alberto Milone (albertomilone) wrote :

I'm pretty sure I've already fixed this. The following code (which precedes the one you edited) should prevent nvidia-detector from processing packages containing the "experimental" string in their name:

        for package in apt.Cache():
            if (not package.name.startswith('nvidia-')
                or 'updates' in package.name
                or 'experimental' in package.name):
                continue

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

It should be fixed as of 1:0.2.71.1 but errors.ubuntu.com seems to think otherwise

Revision history for this message
Ted Gould (ted) wrote :

I didn't see your fix, I was just following the stack trace that errors
came back with. It definitely thinks it is still occurring. I was just
clicking and thinking "I can fix that" ;-)

Revision history for this message
Sebastien Bacher (seb128) wrote :

setting to "work in progress" so it gets off the sponsoring queue since "reject" is not available as a status, the issue seems to be resolved for quantal/raring looking at errors.ubuntu.com, jockey in precise needs a fix still though?

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

Alberto says this is not an issue any more in current precise/quantal/raring, it was fixed by filtering out "-experimental" drivers entirely.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

It's still there at the errors.ubuntu.com #1 for latest precise-updates version 0.9.7-0ubuntu7.4. Nominated the bug #1054458 for precise.

Unmerged revisions

31. By Ted Gould

Grab the number out of the package name as the last entry in the name. This gets the correct number for packages like nvidia-experimental-1234.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'NvidiaDetector/nvidiadetector.py'
2--- NvidiaDetector/nvidiadetector.py 2012-10-24 16:42:19 +0000
3+++ NvidiaDetector/nvidiadetector.py 2012-12-04 04:49:18 +0000
4@@ -146,7 +146,7 @@
5
6 # package names can be like "nvidia-173:i386" and we need to
7 # extract the driver flavour from the name e.g. "173"
8- stripped_package_name = package.name.split('-', 1)[1].split(':', 1)[0]
9+ stripped_package_name = package.name.split(':', 1)[0].split('-')[-1]
10 driver_version = self.__get_value_from_name(stripped_package_name)
11
12 try:

Subscribers

People subscribed via source and target branches

to all changes: