update-manager fails to compile with python 2.4 on hardy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Fix Released
|
High
|
Michael Vogt |
Bug Description
Binary package hint: update-manager
I received the following error on attempting to upgrade to update-manager 1:0.85.3:
Errors were encountered while processing:
update-manager
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up update-manager (1:0.85.3) ...
Compiling /usr/lib/
File "/usr/lib/
finally:
^
SyntaxError: invalid syntax
pycentral: pycentral pkginstall: error byte-compiling files (32)
pycentral pkginstall: error byte-compiling files (32)
dpkg: error processing update-manager (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
update-manager
The issue is that, in Python 2.4, you don't get try-except-finally - you get try(try-
Changing the try-except-finally block to be a try-finally block with the try-except as its contents (starting at line 414, ending at line 451) fixes this problem.
Related branches
Changed in update-manager: | |
assignee: | nobody → mvo |
importance: | Undecided → High |
status: | Confirmed → In Progress |
HI,
Thanks, could you show me or tell me in more detail what you have to change? Thanks