/usr/bin/sugar-erase-bundle is in sugar-session 0.112-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #!/usr/bin/python
import os
import sys
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
from jarabe.model import bundleregistry
def cmd_help():
print 'Usage: sugar-erase-bundle bundle_id [...] \n\n\
Erase activity bundles\n'
if len(sys.argv) < 2:
cmd_help()
exit(2)
for name in sys.argv[1:]:
registry = bundleregistry.get_registry()
bundle = registry.get_bundle(name)
if not bundle:
print 'Cannot find %s bundle.' % name
continue
registry.uninstall(bundle, delete_profile=True)
|