#4906 BLOC Update.: Downloading a higher version of an activity doesn't upgrade the one in the XO

Zarro Boogs per Child bugtracker at laptop.org
Wed Dec 12 19:47:23 EST 2007


#4906: Downloading a higher version of an activity doesn't upgrade the one in the
XO
--------------------------+-------------------------------------------------
  Reporter:  gnu          |       Owner:  rwh      
      Type:  enhancement  |      Status:  new      
  Priority:  blocker      |   Milestone:  Update.1 
 Component:  sugar        |     Version:  Build 623
Resolution:               |    Keywords:  review?  
  Verified:  0            |  
--------------------------+-------------------------------------------------
Changes (by rwh):

  * keywords:  review- => review?


Comment:

 Attached new patch: cleaned up mostly like tomeu suggested, and improved
 logic for handling system/non-system activities. Also removing an old
 bundle from the Journal does not uninstall a newer installed bundle. Now I
 think of it, the bundle should '''only''' be uninstalled if the version
 matches.

 Replying to [comment:13 tomeu]:
 > {{{
 >       def remove_bundle(self, bundle_path):
 > +         self._service_name_to_activity_info.clear()
 > +         self._mime_type_to_activities.clear()
 >           return self._registry.RemoveBundle(bundle_path)
 > }}}
 >
 > We are already invalidating the cache on ActivityRemoved and
 ActivityAdded. That's not enough?

 No, that's not enough. We get the ActivityRemoved DBus signal only
 ''after'' we check...

-- 
Ticket URL: <http://dev.laptop.org/ticket/4906#comment:15>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list