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
=== modified file 'update-i386-whitelist'
--- update-i386-whitelist 2020-07-14 17:44:23 +0000
+++ update-i386-whitelist 2020-07-16 08:39:11 +0000
@@ -26,6 +26,7 @@
26import optparse26import optparse
27from urllib.request import urlopen27from urllib.request import urlopen
28import sys28import sys
29import glob
2930
30def get_sources_from_url(url):31def get_sources_from_url(url):
31 '''Download the germinate output and parse out the list of sources.32 '''Download the germinate output and parse out the list of sources.
@@ -124,6 +125,11 @@
124 newSet.remove(pkg)125 newSet.remove(pkg)
125 except KeyError:126 except KeyError:
126 pass127 pass
128
129 for nv_flavour in ('440-server', '450', '450-server'):
130 nvidia_pkg = 'nvidia-graphics-drivers-%s' % (nv_flavour)
131 newSet.update([nvidia_pkg])
132
127 print("Additions:" )133 print("Additions:" )
128 additions = list(newSet-currentSet)134 additions = list(newSet-currentSet)
129 additions.sort()135 additions.sort()

Subscribers

People subscribed via source and target branches