#10600 NORM 10.1.3: Glitch with NormalizedVersion in activity updater

Zarro Boogs per Child bugtracker at laptop.org
Tue Jan 11 11:12:54 EST 2011


#10600: Glitch with NormalizedVersion in activity updater
--------------------+-------------------------------------------------------
 Reporter:  erikos  |                 Owner:  erikos                           
     Type:  defect  |                Status:  new                              
 Priority:  normal  |             Milestone:  10.1.3                           
Component:  sugar   |               Version:  Development build as of this date
 Keywords:          |           Next_action:  diagnose                         
 Verified:  0       |   Deployment_affected:                                   
Blockedby:          |              Blocking:                                   
--------------------+-------------------------------------------------------
 Steps to reproduce:
 - install 852 on an XO-1

 - install Physics

 - olpc-update to 860

 - run the activity updater

 {{{
 Checking ACTIVITY_NAME
 > Failure updating ACTIVITY_NAME none none
 > ...  in _retrieve_update_version... in only_best_update, in __lt__, ...
 > sugar/bundle/bundleversion.py line 135, in _cannot_compare
 >    % (Type(self). __name__, type(other).__name__))
 > TypeError: Can not compare NormalizedVersion and str
 }}}

 You will get a log saying that there was an error during the update. All
 activities have been updated fine. Though Physics have found a version 0.2
 and version 7 is installed. This comparison fails.

 I think we have to cast this version as well to NormalizedVersion:
 http://git.sugarlabs.org/sugar-update-
 control/mainline/blobs/master/src/model.py#line139

 More diagnosis has to follow.

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


More information about the Bugs mailing list