[Bugs] #2491 UNSP: updater doesn't update on Fedora 14 (was: updater doesn't update on Mango (SoaS 4))

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Nov 26 03:34:03 EST 2010


#2491: updater doesn't update on Fedora 14
------------------------------------------+---------------------------------
    Reporter:  walter                     |          Owner:  mchua pbrobinson sdz       
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar                      |        Version:  Git as of bugdate          
    Severity:  Unspecified                |       Keywords:                             
Status_field:  Unconfirmed                |   Distribution:  Unspecified                
   Seeta_dev:                             |  
------------------------------------------+---------------------------------
Changes (by walter):

  * component:  SoaS => sugar


Old description:

> The 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.

New description:

 The 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.


 Haven't tried this on other OSs, but it fails in SoaS, sugar-jhbuild, and
 the sugar-emulator installed with yum on F14.

 The problem is with the call to locale.format in view.py in the updater:

 The problem is with line 391 in _format_size()

         return locale.format(_('%.1f MB'), size / 1024.0 / 1024)

 locale.format doesn't seem to like '%f x' as seen in the code snippet
 below.

 >>> import locale
 >>> locale.format('%f MB', 123)
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib/python2.7/locale.py", line 189, in format
     "format specifier, %s not valid") % repr(percent))
 ValueError: format() must be given exactly one %char format specifier, '%f
 MB' not valid

--

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2491#comment:2>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list