Ticket #10271 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Home view list view does not change versions after Software update

Reported by: Quozl Owned by: cjb
Priority: blocker Milestone: 10.1.2
Component: upgrade utility Version: Development build as of this date
Keywords: os304 Cc:
Action Needed: no action Verified: no
Deployments affected: Blocked By:
Blocking:

Description

  • installed os304 using fs-update,
  • associated with access point,
  • displayed home view in list view mode (F3, ctrl-2),
  • noted version number of Measure was shown as 30,
  • ran Software update and accepted update of Measure,
  • returned to list view,
  • version number was not correct (30 instead of 31),
  • verified /home/olpc/Activities/Measure.activity/activity/activity.info contained version 31.

Workaround: restart Sugar. correct version number shown.

Attachments

0001-Use-bundle-registry-to-install-upgrade-activities.patch (1.3 kB) - added by dsd 4 years ago.
bitfrost fix for review

Change History

  Changed 4 years ago by skierpage

The same thing happened to me after olpc-update --usb to os851. I restarted into the new version, and ran Software update which offered to update a lot of activities, some new. I unchecked Wikipedia and WikipediaEN to save space and updated the rest. This worked and ~/Activities has the new and improved activities, but Home screen Favorites (ring) view doesn't show the new activities like Stop Watch and Words, and List view doesn't show them and shows the old versions and dates for activities like Browse.

I downloaded a new activity GeoQuiz, and that showed up in the Home screen without triggering an update of the rest.

I looked in shell.log and aside from lots of MANIFEST warnings I noticed a traceback from a *collection*, Bible-en.

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/bitfrost/update/actinfo.py", line 186, in get_libraries
    l = libbun.ContentBundle(path)
  File "/usr/lib/python2.6/site-packages/sugar/bundle/contentbundle.py", line 62, in __init__
    self._parse_info(info_file)
  File "/usr/lib/python2.6/site-packages/sugar/bundle/contentbundle.py", line 163, in _parse_info
    'bundle_class' % self._path)
MalformedBundleException: Content bundle /home/olpc/Library/bible-en must specify either global_name or bundle_class

I've repaired that error but don't know how to trigger rebuilding the Home screen's activity list.

I suspect the Home screen will update if and when I restart Sugar.

  Changed 4 years ago by dsd

skierpage, that's a different issue, please open a new ticket. Your system is choking on a now-invalid bundle. But this specific bug (of version numbers not updating) happens even when all installed bundles are valid.

  Changed 4 years ago by dsd

Scratch that. Same bug.

(the malformed bundle thing is already handled gracefully, just the fact that an exception was logged was confusing me)

Changed 4 years ago by dsd

bitfrost fix for review

  Changed 4 years ago by dsd

  • priority changed from low to normal
  • next_action changed from reproduce to review
  • milestone changed from Not Triaged to 10.1.2

Bumping the priority as the same bug results in new activities not appearing until sugar is restarted. Marked for 10.1.2 as this is a regression.

Fix attached, please review.

  Changed 4 years ago by Quozl

  • next_action changed from review to package

Tested on XO-1 build os851, applied patch manually, restarted Sugar, used Software update to install an activity not previously installed, after this the activities were now correctly shown in home view in favorites view (F3, ctrl-1) and list view (F3, ctrl-2) without requiring a restart.

  Changed 4 years ago by dsd

  • next_action changed from package to test in build

bitfrost-1.0.10 ready for next build

  Changed 4 years ago by Quozl

  • priority changed from normal to blocker

  Changed 4 years ago by cjb

test in os852

follow-up: ↓ 10   Changed 4 years ago by Quozl

  • status changed from new to closed
  • next_action changed from test in build to no action
  • resolution set to fixed

Tested os852, using Browse installed Pippy-37 from activities.sugarlabs.org, the activity view updated version properly.

in reply to: ↑ 9   Changed 4 years ago by Quozl

Replying to Quozl:

Tested os852, using ...

(This build was withdrawn. 6630361a31cbc31e5c338405b6cad0db os852.zd)

Note: See TracTickets for help on using tickets.