The attached patch makes pycompile deal with "-V -". 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 :)
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: -- 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