Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#10271 closed defect (fixed)

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:
Blocked By: Blocking:
Deployments affected: Action Needed: no action
Verified: no

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 (1)

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

Download all attachments as: .zip

Change History (11)

comment:1 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.

comment:2 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.

comment:3 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

comment:4 Changed 4 years ago by dsd

  • Action Needed changed from reproduce to review
  • Milestone changed from Not Triaged to 10.1.2
  • Priority changed from low to normal

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.

comment:5 Changed 4 years ago by Quozl

  • Action Needed 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.

comment:6 Changed 4 years ago by dsd

  • Action Needed changed from package to test in build

bitfrost-1.0.10 ready for next build

comment:7 Changed 4 years ago by Quozl

  • Priority changed from normal to blocker

comment:8 Changed 4 years ago by cjb

test in os852

comment:9 follow-up: Changed 4 years ago by Quozl

  • Action Needed changed from test in build to no action
  • Resolution set to fixed
  • Status changed from new to closed

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

comment:10 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.