diff --git a/lib/fpm/package/deb.rb b/lib/fpm/package/deb.rb index 0d536528f..c890563f8 100644 --- a/lib/fpm/package/deb.rb +++ b/lib/fpm/package/deb.rb @@ -49,7 +49,7 @@ class FPM::Package::Deb < FPM::Package (?:-[A-Za-z0-9+~.]+)? # debian_revision /x # Version field pattern RELATIONSHIP_FIELD_PATTERN = /^ - (?[A-z0-9][A-z0-9_.-]+) + (?[A-z0-9][A-z0-9+.-]+) (?:\s*\((?[<>=]+)\s(?#{VERSION_FIELD_PATTERN})\))? $/x # Relationship field pattern @@ -733,7 +733,7 @@ def converted_from(origin) else # Also replace '::' in the perl module name with '-' modulename = m["name"].gsub("::", "-") - + # Fix any upper-casing or other naming concerns Debian has about packages name = "#{attributes[:cpan_package_name_prefix]}-#{modulename}"