diff -Nru ubuntu-drivers-common-0.4.17.6/debian/changelog ubuntu-drivers-common-0.4.17.7/debian/changelog --- ubuntu-drivers-common-0.4.17.6/debian/changelog 2018-01-22 11:49:48.000000000 +0000 +++ ubuntu-drivers-common-0.4.17.7/debian/changelog 2018-01-30 13:58:58.000000000 +0000 @@ -1,3 +1,13 @@ +ubuntu-drivers-common (1:0.4.17.7) xenial-security; urgency=medium + + * Drop the cpu-microcode.py detection plugin, as exposing microcode + packages will not be necessary once kernel metapackages have a hard + dependency on them + - remove detect-plugins/cpu-microcode.py + - update UbuntuDrivers/detect.py + + -- Chris Coulson Tue, 30 Jan 2018 13:58:58 +0000 + ubuntu-drivers-common (1:0.4.17.6) xenial-proposed; urgency=medium * tests/ubuntu_drivers.py: diff -Nru ubuntu-drivers-common-0.4.17.6/detect-plugins/cpu-microcode.py ubuntu-drivers-common-0.4.17.7/detect-plugins/cpu-microcode.py --- ubuntu-drivers-common-0.4.17.6/detect-plugins/cpu-microcode.py 2017-03-10 11:24:57.000000000 +0000 +++ ubuntu-drivers-common-0.4.17.7/detect-plugins/cpu-microcode.py 1970-01-01 00:00:00.000000000 +0000 @@ -1,30 +0,0 @@ -# ubuntu-drivers-common custom detect plugin for x86 CPU microcodes -# -# Author: Dimitri John Ledkov -# -# This plugin detects CPU microcode packages based on pattern matching -# against the "vendor_id" line in /proc/cpuinfo. -# -# To add a new microcode family, simply insert a line into the db -# variable with the following format: -# -# '': '', -# - -import logging - -db = { - 'GenuineIntel': 'intel-microcode', - 'AuthenticAMD': 'amd64-microcode', - } - -def detect(apt_cache): - try: - with open('/proc/cpuinfo') as file: - for line in file: - if line.startswith('vendor_id'): - cpu = line.split(':')[1].strip() - if cpu in db: - return [db.get(cpu)] - except IOError as err: - logging.debug('could not open /proc/cpuinfo: %s', err) diff -Nru ubuntu-drivers-common-0.4.17.6/UbuntuDrivers/detect.py ubuntu-drivers-common-0.4.17.7/UbuntuDrivers/detect.py --- ubuntu-drivers-common-0.4.17.6/UbuntuDrivers/detect.py 2018-01-03 11:53:50.000000000 +0000 +++ ubuntu-drivers-common-0.4.17.7/UbuntuDrivers/detect.py 2018-01-30 13:58:58.000000000 +0000 @@ -426,7 +426,7 @@ KMS). ''' # any package which matches any of those globs will be accepted - whitelist = ['bcmwl*', 'pvr-omap*', 'virtualbox-guest*', 'nvidia-*', '*-microcode'] + whitelist = ['bcmwl*', 'pvr-omap*', 'virtualbox-guest*', 'nvidia-*'] allow = [] for pattern in whitelist: allow.extend(fnmatch.filter(packages, pattern))