Related: #1979488 Need a default for .el8 without _N (5 for now)

(cherry picked from commit d380838ec2684bfe24bab1c352b0979ee1d61858)
This commit is contained in:
Eike Rathke 2021-07-08 15:44:04 +02:00
parent d924ddc3a9
commit a6cba0fc5a
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,10 @@ function dist_to_rhel_minor(str, start)
if match then
return string.sub(match, 6)
end
match = string.match(str, ".el8")
if match then
return 5
end
return -1
end}