Package: python-minimal
Version: 2.6.5-6
Severity: important
Hi,
Since python 2.6.5-6, pyversions -r exits if the XS-Python-Version field is
missing in debian/control and debian/pyversions does not exist. The manpage
says that it should return the list of supported python versions like in
2.6.5-5.
This bug makes canto and archivemail FTBFS because debhelper relies on
pyversions.
Example:
(2.6.5-6)
$ pyversions -r
pyversions: missing XS-Python-Version in control file, fall back to
debian/pyversions
[Errno 2] No such file or directory: 'debian/pyversions'
(2.6.5-5)
$ pyversions -r
pyversions: missing XS-Python-Version in control file, fall back to
debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
python2.5 python2.6
The attached patch fixes this problem.
Best Regards,
Vincent
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.34 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-minimal depends on:
ii dpkg 1.15.7.2 Debian package management system
ii python2.6-minimal 2.6.5+20100706-1 A minimal subset of the Python lan
Versions of packages python-minimal recommends:
ii python 2.6.5-6 interactive high-level object-orie
python-minimal suggests no packages.
--- pyversions.py.orig 2010-07-12 16:50:26.004000172 +0200
+++ pyversions.py 2010-07-12 16:50:50.824000172 +0200
@@ -314,11 +314,7 @@
return versions
def extract_pyversion_attribute_bis(fn):
- try:
- vstring = file(fn).readline().rstrip('\n')
- except IOError, msg:
- print msg
- sys.exit(3)
+ vstring = file(fn).readline().rstrip('\n')
return vstring
def main():