Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- deb provides don't support versions (#280)

  • Loading branch information...
commit c0df808280898cb054982b19bd7951c9902e2012 1 parent 34dbd7f
@jordansissel authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 templates/deb.erb
View
4 templates/deb.erb
@@ -16,7 +16,9 @@ Conflicts: <%= conflicts.join(", ") %>
#Pre-Depends: <%#= properpredeps.flatten.join(", ") %>
<%# end -%>
<% if !provides.empty? -%>
-Provides: <%= provides.join(", ") %>
+<%# Turn each provides from 'foo = 123' to simply 'foo' because Debian :\ -%>
+<%# http://www.debian.org/doc/debian-policy/ch-relationships.html %>
+Provides: <%= provides.collect { |d| d.split(" ").first }.join(", ") %>
<% end -%>
<% if !replaces.empty? -%>
Replaces: <%= replaces.join(", ") %>
Please sign in to comment.
Something went wrong with that request. Please try again.