Merge lp:~albertomilone/ubuntu-archive-tools/nvidia-450-whitelist into lp:ubuntu-archive-tools

Proposed by Alberto Milone
Status: Merged
Merged at revision: 1351
Proposed branch: lp:~albertomilone/ubuntu-archive-tools/nvidia-450-whitelist
Merge into: lp:ubuntu-archive-tools
Diff against target: 23 lines (+6/-0)
1 file modified
update-i386-whitelist (+6/-0)
To merge this branch: bzr merge lp:~albertomilone/ubuntu-archive-tools/nvidia-450-whitelist
Reviewer Review Type Date Requested Status
Steve Langasek Pending
Review via email: mp+387503@code.launchpad.net

Commit message

Add the new NVIDIA driver series to the whitelist.

Description of the change

Add the new NVIDIA driver series to the whitelist.

To post a comment you must log in.
Revision history for this message
Rico Tzschichholz (ricotz) wrote :

Maybe it is possible to add them with a wildcard-based way, e.g. "nvidia-graphics-drivers-\d\d\d" and "nvidia-graphics-drivers-\d\d\d-server"

Revision history for this message
Rico Tzschichholz (ricotz) wrote :

.. to allow future releases to be handled automatically.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'update-i386-whitelist'
2--- update-i386-whitelist 2020-07-14 17:44:23 +0000
3+++ update-i386-whitelist 2020-07-16 08:39:11 +0000
4@@ -26,6 +26,7 @@
5 import optparse
6 from urllib.request import urlopen
7 import sys
8+import glob
9
10 def get_sources_from_url(url):
11 '''Download the germinate output and parse out the list of sources.
12@@ -124,6 +125,11 @@
13 newSet.remove(pkg)
14 except KeyError:
15 pass
16+
17+ for nv_flavour in ('440-server', '450', '450-server'):
18+ nvidia_pkg = 'nvidia-graphics-drivers-%s' % (nv_flavour)
19+ newSet.update([nvidia_pkg])
20+
21 print("Additions:" )
22 additions = list(newSet-currentSet)
23 additions.sort()

Subscribers

People subscribed via source and target branches