[Bugs] #394 Browse URGE: cancel a download if space is very tight

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Wed Dec 26 01:18:42 EST 2012


#394: cancel a download if space is very tight
-------------------------+--------------------------------------------------
    Reporter:  tomeu     |          Owner:  humitos          
        Type:  defect    |         Status:  reopened         
    Priority:  Urgent    |      Milestone:  0.98             
   Component:  Browse    |        Version:  Git as of bugdate
    Severity:  Critical  |     Resolution:                   
    Keywords:  r+        |   Distribution:  Unspecified      
Status_field:  Assigned  |  
-------------------------+--------------------------------------------------
Changes (by greenfeld):

  * keywords:  r+, olpc-test-pending => r+
  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 The patch seems to work in Browse-148, but has an order of operations
 issue in the error dialog.

 The section
 {{{
 free_space_mb = self._free_available_space(
     path=self.temp_path) - SPACE_THRESHOLD \
     / 1024.0 ** 2
 }}}

 likely should read
 {{{
 free_space_mb = (self._free_available_space(
     path=self.temp_path) - SPACE_THRESHOLD) \
     / 1024.0 ** 2
 }}}

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


More information about the Bugs mailing list