Ticket #10321 (new defect)
Software update misrepresents the URL it uses for activities and versions
| Reported by: | skierpage | Owned by: | dsd |
|---|---|---|---|
| Priority: | low | Milestone: | Future Release |
| Component: | sugar | Version: | Development build as of this date |
| Keywords: | Cc: | ||
| Action Needed: | design | Verified: | no |
| Deployments affected: | Blocked By: | ||
| Blocking: |
Description
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.


