This file is indexed.

/usr/bin/sugar-install-bundle is in sugar-session 0.106.1-1.

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
26
27
28
29
30
#!/usr/bin/python
import os
import sys

from sugar3.bundle.activitybundle import ActivityBundle

from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)


def cmd_help():
    print 'Usage: sugar-install-bundle [ bundlename ] \n\n\
    Install an activity bundle (.xo). \n'

if len(sys.argv) != 2:
    cmd_help()
    sys.exit(2)

if 'SUGAR_PROFILE' in os.environ:
    # We are in sugar, so use the bundle registry so the correct signals
    # are sent to the activity list
    from jarabe.model.bundleregistry import get_registry
    registry = get_registry()
    bundle = ActivityBundle(sys.argv[1])
    registry.install(bundle, force_downgrade=True)
else:
    bundle = ActivityBundle(sys.argv[1])
    bundle.install()

print "%s: '%s' installed." % (sys.argv[0], sys.argv[1])