#10321 NORM 10.1.2: Software update misrepresents the URL it uses for activities and versions
Zarro Boogs per Child
bugtracker at laptop.org
Thu Aug 26 02:26:30 EDT 2010
#10321: Software update misrepresents the URL it uses for activities and versions
-----------------------+----------------------------------------------------
Reporter: skierpage | Owner: dsd
Type: defect | Status: new
Priority: normal | Milestone: 10.1.2
Component: sugar | Version: not specified
Keywords: | Next_action: never set
Verified: 0 | Deployment_affected:
Blockedby: | Blocking:
-----------------------+----------------------------------------------------
Both My Settings > Software update and `sugar-control-panel -g
available_updates` misrepresent the URL they're using to figure out what
activities and versions to update. They both print "Fetching
http://wiki.laptop.org/go/Activities/G1G1..." even though that usually
*isn't* the web page they retrieve and use. As I understand it from
http://wiki.laptop.org/go/Software_update#Activity_groups , they use the
first URL matching the activity group plus build, full release, major
release, or no suffix.
To reproduce, in Software update set your Activity group in "Modify
activity groups" to "http://wiki.laptop.org/go/Activities/G1G1" if it
wasn't this already. Then in 8.2.1 or 10.1.2 do a software update. It'll
display "Fetching http://wiki.laptop.org/go/Activities/G1G1..." but the
list of activities and versions it updates is ''not'' this URL, but
something like Activities/G1G1/10.1 or Activities/G1G1/758 (see
http://wiki.laptop.org/go/Special:PrefixIndex/Activities/G1G1/ , that set
of 9 possibilities is part of the problem!)
The fix is for /usr/share/sugar/extensions/cpsection/updater/model.py to
print the actual URL it's using (the activity group URL usually followed
by a build number, major, or minor release). Unfortunately that's handled
by bitfrost internals so this is not an easy fix.
It appears that the "Modify activity group" expanding section in the UI
displays information from the actual URL it uses. So the workaround (that
should be fixed in any case) is to give each subpage of
http://wiki.laptop.org/go/Activities/G1G1/ very descriptive microformat
information that Software updater will display, see
http://wiki.laptop.org/go/Activity_microformat . But that info only
appears after the Fetching... display and if you expand.
--
Ticket URL: <http://dev.laptop.org/ticket/10321>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list