diff --git a/debian/changelog b/debian/changelog index 0ea7977783c01cdd50c3d4a326f82fabdadc81b1..497d689dd9be4fabacf0666655de09f7286d6612 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,8 +6,10 @@ python-defaults (2.7.2-11) UNRELEASED; urgency=low * Move /usr/bin/pyversions from python to python-minimal since that's where the actual script it's a symlink to lives, add Breaks/Replaces * Bump standards version to 3.9.3 without further change + * Correct Python package names with hyphens in them being ignored + (Closes: #657665) - -- Scott Kitterman <scott@kitterman.com> Wed, 18 Apr 2012 17:29:50 -0400 + -- Scott Kitterman <scott@kitterman.com> Fri, 04 May 2012 23:34:46 -0400 python-defaults (2.7.2-10) unstable; urgency=low diff --git a/debpython/pydist.py b/debpython/pydist.py index 209dc911b663fcce37c4558bfb288d68e9243aea..1549196b9d390502ee347a7fb2821af4ce10733a 100644 --- a/debpython/pydist.py +++ b/debpython/pydist.py @@ -32,7 +32,7 @@ log = logging.getLogger(__name__) PUBLIC_DIR_RE = re.compile(r'.*?/usr/lib/python(\d.\d+)/(site|dist)-packages') PYDIST_RE = re.compile(r""" - (?P<name>[A-Za-z][A-Za-z0-9_.]*) # Python distribution name + (?P<name>[A-Za-z][A-Za-z0-9_.\-]*) # Python distribution name \s* (?P<vrange>(?:-?\d\.\d+(?:-(?:\d\.\d+)?)?)?) # version range \s*