diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-07-30 07:08:32 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-07-30 07:08:32 (GMT) |
commit | db6f09543e558cfaa5648fc9a47e86a81b9c745b (patch) | |
tree | 3d32313d86d7d45970d574750d67f24f0fd0c011 /src | |
parent | 8446ac15ea844458d7e8e9ef9a400017c6591aa7 (diff) |
Install .xo bundles while uploading to Journal
Diffstat (limited to 'src')
-rw-r--r-- | src/jarabe/model/bundleregistry.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/jarabe/model/bundleregistry.py b/src/jarabe/model/bundleregistry.py index 2155208..eae33b3 100644 --- a/src/jarabe/model/bundleregistry.py +++ b/src/jarabe/model/bundleregistry.py @@ -210,6 +210,8 @@ class BundleRegistry(gobject.GObject): logging.debug('STARTUP: Adding bundle %r' % bundle_path) try: bundle = ActivityBundle(bundle_path) + logging.error(bundle_path) + logging.error(bundle) if install_mime_type: bundle.install_mime_type(bundle_path) except MalformedBundleException: @@ -330,12 +332,9 @@ class BundleRegistry(gobject.GObject): def install(self, bundle): activities_path = env.get_user_activities_path() - if self.get_bundle(bundle.get_bundle_id()): - raise AlreadyInstalledException - for installed_bundle in self._bundles: if bundle.get_bundle_id() == installed_bundle.get_bundle_id() and \ - bundle.get_activity_version() == \ + bundle.get_activity_version() <= \ installed_bundle.get_activity_version(): raise AlreadyInstalledException elif bundle.get_bundle_id() == installed_bundle.get_bundle_id(): |