Skip to content

Commit

Permalink
Merge pull request #301 from r4um/fix_295
Browse files Browse the repository at this point in the history
Fix #295 Add multiple provides correctly
  • Loading branch information
jordansissel committed Dec 7, 2012
2 parents ca66f09 + 45ad8c0 commit 40b7a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/deb.erb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Conflicts: <%= conflicts.join(", ") %>
<% if !provides.empty? -%> <% if !provides.empty? -%>
<%# Turn each provides from 'foo = 123' to simply 'foo' because Debian :\ -%> <%# Turn each provides from 'foo = 123' to simply 'foo' because Debian :\ -%>
<%# http://www.debian.org/doc/debian-policy/ch-relationships.html -%> <%# http://www.debian.org/doc/debian-policy/ch-relationships.html -%>
Provides: <%= provides.first.split(" ").first %> Provides: <%= provides.map {|p| p.split(" ").first}.join ", " %>
<% end -%> <% end -%>
<% if !replaces.empty? -%> <% if !replaces.empty? -%>
Replaces: <%= replaces.join(", ") %> Replaces: <%= replaces.join(", ") %>
Expand Down

0 comments on commit 40b7a6a

Please sign in to comment.