Skip to content
This repository
Browse code

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

  • Loading branch information...
commit f3bf4afa96e785819a7de4c8ebd3ea84fcec4496 1 parent a2a9ae9
Jordan Sissel authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  lib/fpm/package.rb
1  lib/fpm/package.rb
@@ -319,6 +319,7 @@ def template(path)
319 319 end # def template
320 320
321 321 def to_s(fmt="NAME.TYPE")
  322 + fmt = "NAME.TYPE" if fmt.nil?
322 323 fullversion = version.to_s
323 324 fullversion += "-#{iteration}" if iteration
324 325 return fmt.gsub("ARCH", architecture.to_s) \

0 comments on commit f3bf4af

Please sign in to comment.
Something went wrong with that request. Please try again.