Skip to content
Browse files

improve error messages

  • Loading branch information...
1 parent 0d33217 commit 3d10f65d7f00f44b720a73843634436b4c097e21 @jordansissel committed Aug 24, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/fpm/package/deb.rb
View
7 lib/fpm/package/deb.rb
@@ -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

0 comments on commit 3d10f65

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