Your message dated Fri, 3 Dec 2010 11:59:45 +0100
with message-id <[email protected]>
and subject line Re: Bug#605772: python-defaults: [patch] make pycompile
understand "-V -"
has caused the Debian Bug report #605772,
regarding python-defaults: [patch] make pycompile understand "-V -"
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
605772: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=605772
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-defaults
Version: 2.6.6-5
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu natty ubuntu-patch
>From the launchpad bugreport #684644
When moving update-manager from python-central to dh_python2 it found that it
geneated a incorrect postinst
for the auto-upgrader-tester. That package contains a private directory with
source files that are run as part of
the auto-upgrade tests. From that it generated:
#!/bin/sh
set -e
# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
pycompile -p auto-upgrade-tester
fi
if which pycompile >/dev/null 2>&1; then
pycompile -p auto-upgrade-tester /usr/share/auto-upgrade-tester -V -
fi
# End automatically added section
The "-V -" make pycompile coke with a error when trying to install the pkg:
Traceback (most recent call last):
File "/usr/bin/pycompile", line 287, in <module>
main()
File "/usr/bin/pycompile", line 240, in main
exists("/usr/bin/python%d.%d" % options.vrange[0]):
TypeError: %d format: a number is required, not NoneType
I ran into a problem with the "auto-upgade-tester" package that
Attached is patch that should fix the problem. I'm not 100% sure if
the right approach is to allow "-V -" in pycompile or to not generate
a "-V -" in the postinst.
AIUI the "-" is a valid version range (vrange() and vrange_str()
both understand it). So pycompile should be able to deal with it
as well. Please correct me if I'm wrong on that :)
Thanks,
Michael
-- System Information:
Debian Release: squeeze/sid
APT prefers natty-updates
APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.35-22-generic (SMP w/4 CPU cores)
Locale: LANG=en_DK.utf8, LC_CTYPE=en_DK.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru python-defaults-2.6.6/pycompile python-defaults-2.6.6/pycompile
--- python-defaults-2.6.6/pycompile 2010-10-18 18:23:45.000000000 +0200
+++ python-defaults-2.6.6/pycompile 2010-12-03 11:19:30.000000000 +0100
@@ -235,8 +235,9 @@
'only, please use /usr/share/python/bcep to specify '
'public modules to skip')
- if options.vrange and options.vrange[0] == options.vrange[1] and\
- exists("/usr/bin/python%d.%d" % options.vrange[0]):
+ if (options.vrange and options.vrange[0] and options.vrange[1] and
+ options.vrange[0] == options.vrange[1] and
+ exists("/usr/bin/python%d.%d" % options.vrange[0])):
# specific version requested, use it even if it's not in SUPPORTED
versions = set(options.vrange[:1])
else:
--- End Message ---
--- Begin Message ---
Source: python-defaults
Source-Version: 2.6.6-3+squeeze2
It's already fixed in 2.6.6-3+squeeze2 and 2.6.6-6 (in experimental)
Please sync it with Debian.
--- End Message ---