diff --git a/elivepatch_client/security.py b/elivepatch_client/security.py index 8cc067f..45241e5 100644 --- a/elivepatch_client/security.py +++ b/elivepatch_client/security.py @@ -35,7 +35,8 @@ def cve_git_id(self, kernel_version): if "CVEs fixed in" in line: security_versions_tmp = line.strip().split(' ')[3][:-1] # if there is not revision, set revision as 0 - if len(security_versions_tmp) == 3: + sv_split_tmp = security_versions_tmp.split('.') + if len(sv_split_tmp) == 2: security_versions.append(0) else: security_versions.append(security_versions_tmp.split('.')[2])