Skip to content

Commit

Permalink
Merge pull request #109 from yuravk/almalinux-ng-fix-107
Browse files Browse the repository at this point in the history
Fix dot-less CentOS Stream release determining.
  • Loading branch information
andrewlukoshko authored Apr 24, 2024
2 parents 1b919f9 + 7025923 commit e1c072c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_os_release(path):
data = dict(l.strip().split('=', 1) for l in f.readlines() if '=' in l)
release_id = data.get('ID', '').strip('"')
version_id = data.get('VERSION_ID', '').strip('"')
if release_id == 'centos' and '.' not in version_id:
if release_id == 'centos' and '.' not in os_version:
os_version = "{}.999".format(version_id)
return OSRelease(
release_id=release_id,
Expand Down

0 comments on commit e1c072c

Please sign in to comment.