Unverified Commit e6b9c9a0 authored by Massimiliano Adamo's avatar Massimiliano Adamo
Browse files

fix package detection

parent ad575508
......@@ -48,7 +48,7 @@ def get_packages_list(pkg_match):
installed_list = installed_out.decode('utf-8').split('\n')
# delete empty items
kernels = [item for item in installed_list if item != '']
kernel_versions = [item.replace(pkg_match, '') for item in kernels]
kernel_versions = [get_version(item) for item in kernels]
# sort by version and unique
return sorted(list(set(kernel_versions)), key=LooseVersion)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment