Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add multiple provides correctly

  • Loading branch information...
commit 45ad8c07ad2fb51042c137061fd551068d2b6a94 1 parent 9eefb0c
@r4um r4um authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  templates/deb.erb
View
2  templates/deb.erb
@@ -18,7 +18,7 @@ Conflicts: <%= conflicts.join(", ") %>
<% if !provides.empty? -%>
<%# Turn each provides from 'foo = 123' to simply 'foo' because Debian :\ -%>
<%# http://www.debian.org/doc/debian-policy/ch-relationships.html -%>
-Provides: <%= provides.first.split(" ").first %>
+Provides: <%= provides.map {|p| p.split(" ").first}.join ", " %>
<% end -%>
<% if !replaces.empty? -%>
Replaces: <%= replaces.join(", ") %>
Please sign in to comment.
Something went wrong with that request. Please try again.