Skip to content

Commit

Permalink
debian: use VERSION_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 8, 2025
1 parent 3044105 commit e14ceae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/rubygems-requirements-system/os-release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ def version_codename
self["VERSION_CODENAME"]
end

def version_id
self["VERSION_ID"]
end

private
def parse
@variables = {}
Expand Down
2 changes: 1 addition & 1 deletion lib/rubygems-requirements-system/platform/debian.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def resolve_package_url_template(package_url_template)
package_url_template % {
distribution: os_release.id,
code_name: os_release.version_codename,
version: os_release.version,
version: os_release.version_id,
}
end
end
Expand Down

0 comments on commit e14ceae

Please sign in to comment.