[sugar] Update.1 activities download script
Bert Freudenberg
bert at freudenbergs.de
Fri Mar 14 12:15:49 EDT 2008
Hi Scott, and all,
I made a script that downloads and installs or upgrades the official
activities for Update.1 from the repository at:
http://mock.laptop.org/repos/local.update1/XOS/Dictionary-1.xo
The script is available at
http://dev.laptop.org/~bert/update-activities.py
and it makes testing these activities on build 700 rather simple.
Usage: update-activities.py [options] [ACTIVITIES]
If no ACTIVITIES are listed, operate on all activities
Options:
-h, --help show this help message and exit
-u, --upgrade upgrade installed activities [default]
-i, --install install non-installed activities
-d, --download only download, do not actually install or upgrade
-l, --list only list, do not actually install or upgrade
To save download time, do something like this first:
cp -a /usr/share/activities/*.activity /home/olpc/Activities
I also noticed problems with some of the .xo bundles, see
http://dev.laptop.org/ticket/6696
http://dev.laptop.org/ticket/6697
And finally, there is a trick in the script so it connects to the
current Sugar session even if run from the console or via ssh - may be
useful to somebody:
if not 'SUGAR_PREFIX' in os.environ:
"""Connect to running Sugar session"""
cp = ConfigParser()
cp.read(env.get_profile_path('session.info'))
os.environ['DBUS_SESSION_BUS_ADDRESS'] = cp.get('Session',
'dbus_address')
dbus.set_default_main_loop(dbus.mainloop.NULL_MAIN_LOOP)
- Bert -
More information about the Sugar
mailing list