Package: gdebi Version: 0.8.2 Severity: normal Tags: patch User: ubuntu-de...@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
diff -Nru gdebi-0.8.2/debian/control gdebi-0.8.2ubuntu1/debian/control --- gdebi-0.8.2/debian/control 2011-09-17 12:26:22.000000000 -0400 +++ gdebi-0.8.2ubuntu1/debian/control 2011-11-09 14:04:36.000000000 -0500 @@ -7,7 +7,7 @@ Build-Depends: debhelper (>= 8), python (>= 2.6.6-3~), intltool -X-Python-Version: all +X-Python-Version: >= 2.6 Standards-Version: 3.9.2 Vcs-Bzr: https://code.launchpad.net/~gdebi-developers/gdebi/trunk