diff --git a/lib/fpm/package/pyfpm/get_metadata.py b/lib/fpm/package/pyfpm/get_metadata.py index 89a803a502..c333d7752b 100644 --- a/lib/fpm/package/pyfpm/get_metadata.py +++ b/lib/fpm/package/pyfpm/get_metadata.py @@ -68,7 +68,7 @@ def process_dep(self, dep): def run(self): data = { - "name": self.distribution.get_name(), + "name": pkg_resources.safe_name(self.distribution.get_name()), "version": self.distribution.get_version(), "author": u("%s <%s>") % ( u(self.distribution.get_author()),