[Bugs] #4841 Sugar NORM: Only some newly installed system-wide activities are favorites

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Jul 31 10:41:14 EDT 2015


#4841: Only some newly installed system-wide activities are favorites
---------------------+-------------------------------------
  Reporter:  quozl   |            Owner:
      Type:  defect  |           Status:  new
  Priority:  Normal  |        Milestone:
 Component:  Sugar   |          Version:  Git as of bugdate
  Severity:  Minor   |       Resolution:
  Keywords:          |  Distribution/OS:  Ubuntu
Bug Status:  New     |
---------------------+-------------------------------------

Comment (by tch):

 I got a revised version for the last patch to handle the delay between the
 directory creation and the time to actually access its contents (e.g.
 actvity.info file).

 The idea is basically just to do a best-effort retry approach, this means
 it will retry with inscreasing delay times until it reaches a limit.

 The patch [1] as it is, will basically retry 3 times, after 100ms, 1000ms
 and 10000ms, which seems reasoable in terms of workload. These times work
 fine for all our current packages.

 To test I used:
 1. sudo apt-get remove $(dpkg-query -W|grep sugar|grep activity|cut -f1)
 2. sudo mkdir /usr/share/sugar/activities # very important, because the
 directory is removed in the previous step.
 3. sudo apt-get install olpc-activities

 [1]
 https://github.com/tchx84/sugar/commit/7743b90b380970751cf32eee544ee84f135c203a

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


More information about the Bugs mailing list