[ubuntu-dev] Bug#648229: gdebi: Can't mix 'X-Python-Version: all' and dh_python2
Michael Terry
michael.terry at canonical.com
Wed Nov 9 19:09:31 UTC 2011
Package: gdebi
Version: 0.8.2
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu precise ubuntu-patch
With dh_python2, one can't use the 'all' keyword in X-Python-Version anymore. See http://wiki.debian.org/Python/TransitionToDHPython2
When using the all keyword, Ubuntu noticed a FTBFS due to the following dh_python2 crash:
dh_python2 /usr/share/gdebi
Traceback (most recent call last):
File "/usr/bin/dh_python2", line 699, in <module>
main()
File "/usr/bin/dh_python2", line 601, in main
dependencies.parse(stats, options)
File "/usr/share/python/debpython/depends.py", line 147, in parse
self.depend("python%s" % vrepr(vr[0]))
File "/usr/share/python/debpython/version.py", line 247, in vrepr
and isinstance(value[0], int):
TypeError: 'NoneType' object is not subscriptable
Using the attached patch makes the error go away.
Thanks for considering it!
-- System Information:
Debian Release: wheezy/sid
APT prefers precise-updates
APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 'precise')
Architecture: i386 (i686)
Kernel: Linux 3.1.0-2-generic-pae (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmphSkPCS
Type: text/x-diff
Size: 469 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/ubuntu-dev-team/attachments/20111109/a4865d47/attachment.diff>
More information about the ubuntu-dev-team
mailing list