Package: python-central Version: 0.6.14 Severity: important Tags: patch Hi,
When I try to upgrade python-wxgtk2.8, it fails with the following errors: Preparing to replace python-wxgtk2.8 2.8.7.1-2+b1 (using .../python-wxgtk2.8_2.8.10.1-1_i386.deb) ... File "/usr/bin/pycentral", line 2112 else: ^ SyntaxError: invalid syntax dpkg: warning: old pre-removal script returned error exit status 1 dpkg - trying script from the new package instead ... File "/usr/bin/pycentral", line 2112 else: ^ SyntaxError: invalid syntax dpkg: error processing /var/cache/apt/archives/python-wxgtk2.8_2.8.10.1-1_i386.deb (--unpack): subprocess new pre-removal script returned error exit status 1 update-alternatives: using /usr/lib/wx/python/wx2.8.pth to provide /usr/lib/wx/python/wx.pth (wx.pth) in auto mode. File "/usr/bin/pycentral", line 2112 else: ^ SyntaxError: invalid syntax The problem is that line 2111 of pycentral is missing a closing parenthesis. I've verified that the attached patch fixes this problem. -- Matt http://ftbfs.org/kraai
diff -ru python-central-0.6.14~/pycentral.py python-central-0.6.14/pycentral.py --- python-central-0.6.14~/pycentral.py 2009-12-03 08:05:19.000000000 -0800 +++ python-central-0.6.14/pycentral.py 2009-12-03 08:05:38.000000000 -0800 @@ -2108,7 +2108,7 @@ elif len(matching_actions) > 1: usage(sys.stderr, "ambiguous action `%s', matching actions: %s" - % (action_name, str(list(matching_actions))) + % (action_name, str(list(matching_actions)))) else: action_name = matching_actions[0]