| 2 | |
| 3 | |
| 4 | Haven't tried this on other OSs, but it fails in SoaS, sugar-jhbuild, and the sugar-emulator installed with yum on F14. |
| 5 | |
| 6 | The problem is with the call to locale.format in view.py in the updater: |
| 7 | |
| 8 | The problem is with line 391 in _format_size() |
| 9 | |
| 10 | return locale.format(_('%.1f MB'), size / 1024.0 / 1024) |
| 11 | |
| 12 | locale.format doesn't seem to like '%f x' as seen in the code snippet below. |
| 13 | |
| 14 | >>> import locale |
| 15 | >>> locale.format('%f MB', 123) |
| 16 | Traceback (most recent call last): |
| 17 | File "<stdin>", line 1, in <module> |
| 18 | File "/usr/lib/python2.7/locale.py", line 189, in format |
| 19 | "format specifier, %s not valid") % repr(percent)) |
| 20 | ValueError: format() must be given exactly one %char format specifier, '%f MB' not valid |
| 21 | |