Skip to content

Commit 566d10f

Browse files
committed
Fix deb package naming
1 parent 025f4a3 commit 566d10f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/vanagon/platform/deb.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ def generate_packaging_artifacts(workdir, name, binding, project) # rubocop:disa
5656
# @param project [Vanagon::Project] project to name
5757
# @return [String] name of the debian package for this project
5858
def package_name(project)
59-
"#{project.name}_#{project.version}-#{project.release}#{dist}_#{project.noarch ? 'all' : @architecture}.deb"
59+
"#{project.name}-#{project.version}-#{project.release}+#{project.platform.os_name}#{project.platform.os_version}_#{project.noarch ? 'all' : @architecture}.deb"
6060
end
6161

6262
# Get the expected output dir for the debian packages. This allows us to
6363
# use some standard tools to ship internally.
6464
#
6565
# @return [String] relative path to where debian packages should be staged
6666
def output_dir(target_repo = "")
67-
@output_dir ||= File.join("deb", @platform.dist, target_repo)
67+
@output_dir ||= File.join("deb", os_name + os_version, target_repo)
6868
end
6969

7070
# Returns the string to add a target repo to the platforms' provisioning

resources/deb/changelog.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<%= @name %> (<%= @version %>-<%= @release %><%= @platform.codename %>) <%= @platform.codename %>; urgency=low
1+
<%= @name %> (<%= @version %>-<%= @release %>+<%= @platform.os_name %><%= @platform.os_version %>) <%= @platform.os_name %><%= @platform.os_version %>; urgency=low
22

33
* Update to version <%= @version %>
44

0 commit comments

Comments
 (0)