Package: microcode.ctl Version: 1.17-13.1 Followup-For: Bug #571408 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu precise ubuntu-patch
In Ubuntu, the attached patch was applied in addition to Stefano's patch above fix the microcode JSON search URL being used, as it changed again. (https://bugs.launchpad.net/ubuntu/+source/microcode.ctl/+bug/891283) Thanks for considering the patch. -- System Information: Debian Release: wheezy/sid APT prefers oneiric-updates APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 'oneiric'), (100, 'oneiric-backports') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-13-generic (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -u microcode.ctl-1.17/debian/update-intel-microcode microcode.ctl-1.17/debian/update-intel-microcode --- microcode.ctl-1.17/debian/update-intel-microcode +++ microcode.ctl-1.17/debian/update-intel-microcode @@ -10,7 +10,8 @@ import tarfile import urllib2 -url = 'http://downloadcenter.intel.com/JSONDataProvider.aspx?DownloadType=Firmware&ProductFamily=Processors&ProductLine=Desktop&ProductProduct=Intel%C2%AE%20Core%E2%84%A2%20i7%20Processor&sortDir=descending&Hits=10&&lang=eng&pg=1&refresh=filters&dataType=json&type=GET' +url = 'http://downloadcenter.intel.com/JSONDataProvider.aspx?OSVersion=Linux*&DownloadType=Firmware&ProductFamily=Processors&ProductLine=Desktop&ProductProduct=Intel%C2%AE%20Core%E2%84%A2%20i7%20Desktop%20Processor&sortDir=descending&refresh=filters&dataType=json&type=GET' + try: data = urllib2.urlopen(url).read() except urllib2.HTTPError, e: @@ -21,6 +22,7 @@ sys.exit(1) results = json.loads(data)['results'] +assert len(results), "no search results - microcode search URL needs updating" # check for numerically highest date newest = sorted(results, key=lambda x: x['version'])[-1]