Changes between Initial Version and Version 2 of Ticket #2491


Ignore:
Timestamp:
11/26/2010 08:34:01 (13 years ago)
Author:
walter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2491

    • Property Component changed from SoaS to sugar
    • Property Summary changed from updater doesn't update on Mango (SoaS 4) to updater doesn't update on Fedora 14
  • Ticket #2491 – Description

    initial v2  
    11The CP updater searches for and properly identifies bundles to update, but then it fails to display the dialog that enables you to proceed with the update.
     2
     3
     4Haven't tried this on other OSs, but it fails in SoaS, sugar-jhbuild, and the sugar-emulator installed with yum on F14.
     5
     6The problem is with the call to locale.format in view.py in the updater:
     7
     8The problem is with line 391 in _format_size()
     9
     10        return locale.format(_('%.1f MB'), size / 1024.0 / 1024)
     11
     12locale.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)
     16Traceback (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))
     20ValueError: format() must be given exactly one %char format specifier, '%f MB' not valid
     21