Public bug reported: 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: 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 ** Affects: python-defaults (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/684644 Title: dh_python2 can generate postinst that crashes pycompile -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs