diff --git a/debian/changelog b/debian/changelog index 7404d34e3a31a0fad5c0930f6e68a908fb8f9468..ac15879e328a1603490bc0a31993dade37b6e8e6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +python-defaults (2.6.6-11) UNRELEASED; urgency=low + + * dh_python2: fix parsing .pyinstall files (a space between file name and + module name is now required) + + -- Piotr Ożarowski <piotr@debian.org> Sat, 15 Jan 2011 21:14:38 +0100 + python-defaults (2.6.6-10) experimental; urgency=low * dh_python2: fix moving files from old debug locations (due to typo) diff --git a/debpython/tools.py b/debpython/tools.py index 0962ccfe9f7b4d0a63d3d4b5ec5f48084da9e4b7..8e97867239dcb7969f47a2b6475df1cdb5971ab2 100644 --- a/debpython/tools.py +++ b/debpython/tools.py @@ -35,7 +35,7 @@ EGGnPTH_RE = re.compile(r'(.*?)(-py\d\.\d(?:-[^.]*)?)?(\.egg-info|\.pth)$') SHEBANG_RE = re.compile(r'^#!\s*/usr/bin/(?:env\s+)?(python(\d+\.\d+)?(?:-dbg)?).*') INSTALL_RE = re.compile(r""" (?P<pattern>.+?) # file pattern - \s* # optional Python module name: + \s+ # optional Python module name: (?P<module>[A-Za-z][A-Za-z0-9_.]*)? \s* # optional version range: (?P<vrange>%s)?$