Permalink
Browse files

Merge pull request #301 from r4um/fix_295

Fix #295 Add multiple provides correctly
  • Loading branch information...
2 parents ca66f09 + 45ad8c0 commit 40b7a6acef148fb70a1cb55098740161ff49b612 @jordansissel committed Dec 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/deb.erb
View
@@ -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(", ") %>

0 comments on commit 40b7a6a

Please sign in to comment.