Only consider packages with versions on Debian
This commit is contained in:
parent
90b2ee1423
commit
e07aa088e6
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ def installed_kernel_versions_debian():
|
|||
dpkg_out = dpkg_out.strip()
|
||||
|
||||
versions = dpkg_out.split('\n')
|
||||
versions = [v for v in versions if re.search('^linux-image-\d', v)]
|
||||
versions = [v for v in versions if re.search('^linux-image-\d.* \S+$', v)]
|
||||
versions = [clean_kernel_version(v.split(' ')[1]) for v in versions]
|
||||
|
||||
return versions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue