pydist-overrides ignores package names with hyphens
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-defaults (Debian) |
Fix Released
|
Unknown
|
|||
python-defaults (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
This is a bug that has already been found and fixed in Debian. I have verified this bug exists in Quantal (python-defaults 2.7.3-0ubuntu7). Because Ubuntu's package is not based on Debian's, this fix has not made it into Ubuntu releases.
Here is a copy of the Debian bug report:
From: Vangelis Koukis <email address hidden>
To: <email address hidden>
Cc: <email address hidden>
Subject: dh_python2 ignores package names with hyphens in
debian/
Date: Fri, 27 Jan 2012 21:51:19 +0200
Package: python
Version: 2.6.6-3+squeeze6
Severity: normal
Tags: patch
Hello,
dh_python2 parses debian/
lines referring to packages with hyphens in their names, which seem to be
totally valid names for python distributions, e.g.,
http://
http://
So the following line:
My-package python-mypackage
is ignored.
Also see,
http://
which mentions the hyphen as an acceptable character:
"However, the distribution name is used to generate filenames, so you
should stick to letters, digits, underscores, and hyphens."
The problem seems to be with the definition of PYDIST_RE
in python-
PYDIST_RE = re.compile(r"""
(?P<
in which the name group is not allowed to contain hyphens.
Adding '\-' in the last bracket expression seems to be a fix for
the problem.
Changed in python-defaults (Debian): | |
status: | Unknown → Fix Released |
Changed in python-defaults (Ubuntu): | |
status: | New → Fix Released |
Likely fixed in Raring as that package is based on a newer Debian package.