|
|
@ -117,7 +117,7 @@ def installed_kernel_versions_debian():
|
|
|
|
['dpkg-query',
|
|
|
|
['dpkg-query',
|
|
|
|
'--show', '--showformat', '${Package} ${Version}\n',
|
|
|
|
'--show', '--showformat', '${Package} ${Version}\n',
|
|
|
|
'linux-image*'])
|
|
|
|
'linux-image*'])
|
|
|
|
dpkg_out = dpkg_out.strip()
|
|
|
|
dpkg_out = dpkg_out.decode('ascii', 'ignore').strip()
|
|
|
|
|
|
|
|
|
|
|
|
versions = dpkg_out.split('\n')
|
|
|
|
versions = dpkg_out.split('\n')
|
|
|
|
versions = [v for v in versions if re.search('^linux-image-\d.* \S+$', v)]
|
|
|
|
versions = [v for v in versions if re.search('^linux-image-\d.* \S+$', v)]
|
|
|
|