Permalink
Browse files

Force default package to_s when name given is nil (#241)

  • Loading branch information...
1 parent a2a9ae9 commit f3bf4afa96e785819a7de4c8ebd3ea84fcec4496 @jordansissel committed Aug 25, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/fpm/package.rb
View
1 lib/fpm/package.rb
@@ -319,6 +319,7 @@ def template(path)
end # def template
def to_s(fmt="NAME.TYPE")
+ fmt = "NAME.TYPE" if fmt.nil?
fullversion = version.to_s
fullversion += "-#{iteration}" if iteration
return fmt.gsub("ARCH", architecture.to_s) \

0 comments on commit f3bf4af

Please sign in to comment.