Skip to content

Commit

Permalink
improve error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Aug 25, 2012
1 parent 0d33217 commit 3d10f65
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/fpm/package/deb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,15 @@ def name
@logger.warn("Debian tools (dpkg/apt) don't do well with packages " \
"that use capital letters in the name. In some cases it will " \
"automatically downcase them, in others it will not. It is confusing." \
"Best to not use any capital letters at all.",
" Best to not use any capital letters at all. I have downcased the " \
"package name for you just to be safe.",
:oldname => @name, :fixedname => @name.downcase)
@name = @name.downcase
end

if @name.include?("_")
@logger.info("Package name includes underscores, converting to dashes",
:name => @name)
@logger.info("Debian package names cannot include underscores; " \
"automatically converting to dashes", :name => @name)
@name = @name.gsub(/[_]/, "-")
end

Expand Down

0 comments on commit 3d10f65

Please sign in to comment.