mirror of
https://github.com/jordansissel/fpm
synced 2025-09-18 11:11:25 +02:00
Merge branch 'bugs/deb-description-fix'
This commit is contained in:
commit
a5571f0ccf
@ -20,10 +20,10 @@ Standards-Version: 3.9.1
|
||||
Section: <%= category or "unknown" %>
|
||||
Priority: extra
|
||||
Homepage: <%= url or "http://nourlgiven.example.com/" %>
|
||||
Description: <%= name %> (FPM-generated package)
|
||||
<% max_len = 74 -%>
|
||||
<% if description -%>
|
||||
<%= description.gsub(/^$/, ".").gsub(/(.{1,#{max_len}})( +|$)\n?|(.{#{max_len}})/," \\1\\3\n") -%>
|
||||
<% else -%>
|
||||
<%= "no description given" %>
|
||||
<% lines = (description or "no description given").split("\n") -%>
|
||||
<% firstline = lines.first -%>
|
||||
<% remainder = lines[1..-1] -%>
|
||||
Description: <%= firstline %>
|
||||
<% if !remainder.nil? -%>
|
||||
<%= remainder.collect { |l| l =~ /^ *$/ ? " ." : " #{l}" }.join("\n") %>
|
||||
<% end -%>
|
||||
|
Loading…
Reference in New Issue
Block a user