def name
if @name =~ /[A-Z]/
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. 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("Debian package names cannot include underscores; " \
"automatically converting to dashes", :name => @name)
@name = @name.gsub(/[_]/, "-")
end
if @name.include?(" ")
logger.info("Debian package names cannot include spaces; " \
"automatically converting to dashes", :name => @name)
@name = @name.gsub(/[ ]/, "-")
end
return @name
end