Permalink
Browse files

Fix a bug introduced in 0.4.11 that caused all deb packages to contai…

…n empty maintainer scripts if not otherwise specified, which made apt/dpkg quite unhappy
  • Loading branch information...
jordansissel committed Aug 10, 2012
1 parent f25a0e3 commit 0cdfeef7930c6e7242a869cfe4db1d386c077b77
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/fpm/package/deb.rb
View
@@ -394,7 +394,7 @@ def write_control
# 'post_install' names
def write_scripts
SCRIPT_MAP.each do |scriptname, filename|
- next if script?(scriptname).nil?
+ next unless script?(scriptname)
with(control_path(filename)) do |controlscript|
@logger.debug("Writing control script", :source => filename, :target => controlscript)

0 comments on commit 0cdfeef

Please sign in to comment.