🐛 decode dpkg output to str, too

master
Mike Gerber 3 years ago
parent ae3bb2c362
commit 6b6e5bb798

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

Loading…
Cancel
Save