Skip to content
Permalink
Browse files
Revert "Use the bundle registry in sugar-install-bundle (when sugar i…
…s running)"

This reverts commit 64b4b2f.
  • Loading branch information
tchx84 committed Oct 11, 2015
1 parent 8d5c262 commit 2c226dc
Showing 1 changed file with 2 additions and 11 deletions.
@@ -1,5 +1,4 @@
#!/usr/bin/env python2
import os
import sys

from sugar3.bundle.activitybundle import ActivityBundle
@@ -16,15 +15,7 @@ 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()
bundle = ActivityBundle(sys.argv[1])
bundle.install()

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

0 comments on commit 2c226dc

Please sign in to comment.