I really don't see the difference between:
versions=2.3-
echo "$versions" | something
and
echo $versions | something
Could you attach the problematic debian/pyversions or .dsc? I suspect what
happens instead is that versions isn't set properly, e.g. has a newline, so
that the code becomes:
echo $versions
| something
I can see this is an issue in debhelper/dh_pysupport that it doesn't strip
empty lines from debian/pyversions:
if (-f $verfile) {
# TODO: debian/package.pyversions ?
$versions=`cat $verfile`;
chomp $versions;
You can try this out by creating a "vers" file with "2.3-" on the first line
followed by some empty lines, and the running:
perl -e 'my $v = `cat vers`; chomp $v; print "a $v b\n"'
output:
a 2.3-
b
One fix is to set:
local $/ = ""
e.g.:
if (-f $verfile) {
# TODO: debian/package.pyversions ?
$versions=`cat $verfile`;
{ local $/ = ""; chomp $versions; }
** Changed in: python-support (Ubuntu)
Status: New => Confirmed
--
dh_pysupport fails to parse pyversion form X.Y-
https://bugs.launchpad.net/bugs/437593
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs