Browse files

- Add installed-size

- thin out some older and unused conditions
  • Loading branch information...
1 parent b08021c commit 032c3c56e4362ccb9db88bc25c53f8fc1cc104ec @jordansissel committed Mar 8, 2012
Showing with 8 additions and 9 deletions.
  1. +8 −9 templates/deb.erb
View
17 templates/deb.erb
@@ -3,26 +3,25 @@ Version: <%= "#{epoch}:" if epoch %><%= version %><%= "-" + iteration.to_s if it
License: <%= license %>
Vendor: <%= vendor %>
Architecture: <%= architecture %>
-Maintainer: <%= maintainer or "<unknown>" %>
+Maintainer: <%= maintainer %>
+Installed-Size: <%= attributes[:deb_installed_size] %>
<% if !dependencies.empty? -%>
-<% properdeps = dependencies.collect { |d| fix_dependency(d) }.flatten -%>
-Depends: <%= properdeps.flatten.join(", ") %>
+Depends: <%= dependencies.join(", ") %>
+<% end -%>
+<% if !conflicts.empty? -%>
+Conflicts: <%= conflicts.join(", ") %>
<% end -%>
<%# if !pre_dependencies.empty? -%>
<%# properpredeps = pre_dependencies.collect { |d| fix_dependency(d) }.flatten -%>
#Pre-Depends: <%#= properpredeps.flatten.join(", ") %>
<%# end -%>
-<% if !conflicts.empty? -%>
-Conflicts: <%= conflicts.join(", ") %>
-<% end -%>
<% if !provides.empty? -%>
Provides: <%= provides.join(", ") %>
<% end -%>
<% if !replaces.empty? -%>
-<% properrepl = replaces.collect { |d| fix_dependency(d) }.flatten -%>
-Replaces: <%= properrepl.flatten.join(", ") %>
+Replaces: <%= replaces.join(", ") %>
<% end -%>
-Section: <%= category or "unknown" %>
+Section: <%= category %>
Priority: extra
Homepage: <%= url or "http://nourlgiven.example.com/" %>
<% lines = (description or "no description given").split("\n") -%>

0 comments on commit 032c3c5

Please sign in to comment.